Marcus Huewe
de84575ab0
- don't read all rpm/deb tags/fields by default
2010-01-14 19:51:09 +01:00
Marcus Hüwe
c57343cfc4
- sigh... python24 fix
2009-11-06 22:28:04 +00:00
Marcus Hüwe
6471a1aabf
- fixed implicit release for deb packages
2009-11-06 22:24:23 +00:00
Marcus Hüwe
4dc6e956c1
- yet another fix for python24...
2009-11-06 21:38:29 +00:00
Marcus Hüwe
9a8579cc35
- fix for python24
2009-11-06 19:24:36 +00:00
Pavol Rusnak
661d927d38
code cleanup
2009-10-20 14:30:15 +00:00
79cada9493
do not die after downloading -debuginfo packages
...
(can maybe solved in a nicer way)
2009-10-07 15:35:45 +00:00
Marcus Hüwe
eab1349dff
- util/debquery.py: implemented dpkg's version comparison algorithm
...
- util/packagequery.py: added epoch() method
2009-09-29 12:32:26 +00:00
Marcus Hüwe
5083dfd6d0
- it's lib/rpmvercmp.c instead of rpmio/rpmvercmp.c...
2009-09-21 16:51:38 +00:00
Marcus Hüwe
8c14808dd1
- util/rpmquery.py: implemented RPM's version comparison algorithm as described in rpmio/rpmvercmp.c
...
- util/packagequery.py: added vercmp(pkgq) method
- util/debquery.py: currently vercmp(degq) is only a dummy method. The real implementation will follow soon.
2009-09-21 16:47:54 +00:00
Marcus Hüwe
cc6d7413fb
- fix for older python versions
2009-09-20 17:19:33 +00:00
Marcus Hüwe
62be2245e7
- util/rpmquery.py, util/debquery.py: added "filename_suffix" attribute
...
- fetch.py: also rewrite the filename for debian packages (this is only useful for older obs instances)
2009-09-13 17:25:48 +00:00
Marcus Hüwe
4bb893a114
- added the following new modules:
...
* util/packagequery.py: it's used to query a RPM or DEB package. It also contains a
base class for all package types (PackageQuery())
* util/debquery.py: query a DEB package (name, version, release, provides, requires etc.)
- adapted util/rpmquery.py to use PackageQuery() as a base class
- minor changes in util/ar.py
2009-09-12 19:02:58 +00:00
Marcus Hüwe
d016b3d4f0
- class CpioWrite(): use a valid file mode (default: regular file with permissions 0644)
...
- removed debug output
2009-09-09 21:25:55 +00:00
Marcus Hüwe
2300afea7e
- merged cpio.py and util/cpio.py:
...
* renamed classes to CpioRead and CpioWrite
2009-09-09 16:02:02 +00:00
Marcus Hüwe
cb16432cd9
- get rid of rpm-python:
...
* so far it was only used for querying rpms which can be done with the rpmquery module
- core.py:
* removed data_from_rpm() and tag_to_rpmpy() methods
- util/rpmquery.py:
* added staticmethod "query()"
- commandline.py, fetch.py:
* use rpmquery module instead of rpm-python/data_from_rpm()
2009-09-09 15:28:21 +00:00
Marcus Hüwe
221fe84d1a
- added rpmquery module:
...
* this module can be used to retrieve data from the rpmheader
* Note: for now the signature header is completely ignored
2009-09-09 14:39:53 +00:00
Marko Jung
a02ce1389a
- fixed exception handling
2009-06-04 15:20:22 +00:00
Pavol Rusnak
e97c1de936
add more checks when working with mmap.mmap
2009-05-22 14:43:39 +00:00
Pavol Rusnak
0fa507a782
mmap.mmap works differently under windows
2009-05-20 16:42:17 +00:00
Michal Cihar
885c72af77
Fix syntax errors with Python 2.4 (bnc#500968).
2009-05-05 14:07:00 +00:00
Marcus Hüwe
9d97bcb56d
- minor fix
2009-03-19 18:25:59 +00:00
Marcus Hüwe
6bf55c5415
- forgot the usual license stuff...
2009-03-19 13:58:04 +00:00
Marcus Hüwe
ab3403380f
- added cpio archive reader. Supported formats:
...
* ascii SVR4 no CRC also called "new_ascii"
- no directory/PIPE/blk etc. support atm. Some of it might be implemented later in case I'm bored:)
- format implementation is based on src/copyin.c and src/util.c (see cpio sources)
- it is needed to investigate #477690 ("osc fetching binaries really slow")
2009-03-19 13:52:00 +00:00
Marcus Hüwe
5d27d74ee4
- added __str__() method to the ArFile class
...
- when rereading a file setup the 'datastructs' again
2009-03-09 11:17:44 +00:00
Marcus Hüwe
2da0f1b737
- added docstring
2009-03-05 02:06:26 +00:00
Marcus Hüwe
141845c324
- added __iter__() method to iterate over an Ar object
2009-03-05 02:00:56 +00:00
Marcus Hüwe
3330cd012c
- added licensing information
2009-03-04 22:56:24 +00:00
Marcus Hüwe
3b08741a80
- added ar module: this can be used to read ar archives. This will be used later to extract files from a debian package which uses this format. Currently we only support the GNU format (note: maybe something is still missing but it's sufficient for our needs)
2009-03-04 22:15:11 +00:00