Branch: refs/heads/master
Home: https://github.com/openSUSE/osc2
Commit: bd3fcd1eb87b9d1f2b98a7ccae8587f061b5c550
https://github.com/openSUSE/osc2/commit/bd3fcd1eb87b9d1f2b98a7ccae8587f061b5...
Author: Marcus Huewe
Date: 2012-06-24 (Sun, 24 Jun 2012)
Changed paths:
M osc/util/io.py
Log Message:
-----------
- util.io: copy_file supports an uid and gid parameter
This is needed by the cpio module.
Commit: f3b97c228a370b685301c0d57eba2b2ee9811a73
https://github.com/openSUSE/osc2/commit/f3b97c228a370b685301c0d57eba2b2ee981...
Author: Marcus Huewe
Date: 2012-06-24 (Sun, 24 Jun 2012)
Changed paths:
M osc/util/__init__.py
Log Message:
-----------
- util.__init__: updated init module
Commit: f673f0d7e78715fcd9b586ba2313241ce8768fd0
https://github.com/openSUSE/osc2/commit/f673f0d7e78715fcd9b586ba2313241ce876...
Author: Marcus Huewe
Date: 2012-06-24 (Sun, 24 Jun 2012)
Changed paths:
A test/util/test_cpio.py
A test/util/test_cpio_fixtures/cpio_archive.cpio
A test/util/test_cpio_fixtures/filewrapper1.txt
A test/util/test_cpio_fixtures/foo
A test/util/test_cpio_fixtures/new_ascii_reader1.cpio
A test/util/test_cpio_fixtures/new_ascii_reader2.cpio
A test/util/test_cpio_fixtures/new_ascii_reader3.cpio
A test/util/test_cpio_fixtures/new_ascii_writer.cpio
A test/util/test_cpio_fixtures/new_ascii_writer_foo_header
A test/util/test_cpio_fixtures/new_ascii_writer_foo_header_default
A test/util/test_cpio_fixtures/new_ascii_writer_sio.cpio
A test/util/test_cpio_fixtures/new_ascii_writer_trailer_header
Log Message:
-----------
- test.util.test_cpio: added testcases for the new cpio module
Commit: a9d79254beed4025d847cb8dc2d53a5f2ddecc54
https://github.com/openSUSE/osc2/commit/a9d79254beed4025d847cb8dc2d53a5f2dde...
Author: Marcus Huewe
Date: 2012-06-24 (Sun, 24 Jun 2012)
Changed paths:
A osc/util/cpio.py
Log Message:
-----------
- util.cpio: added new cpio module
This is a complete rewrite of osc's old cpio module and the implementation
details are taken from the cpio sources (cpio-2.11).
Example:
with cpio_open(fname) as archive:
for archive_file in archive:
# filename
print archive_file.hdr.name
# contents
print archive_file.read()
For more examples have a look at the testcases.
Compare: https://github.com/openSUSE/osc2/compare/b15029de490b...a9d79254beed