1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-14 09:36:21 +01:00

- sigh... python24 fix

This commit is contained in:
Marcus Hüwe 2009-11-06 22:28:04 +00:00
parent 6471a1aabf
commit c57343cfc4

View File

@ -23,7 +23,8 @@ class DebQuery(packagequery.PackageQuery):
control = arfile.get_file('control.tar.gz')
if control is None:
raise DebError('missing control.tar.gz')
tar = tarfile.open(fileobj = control)
# XXX: python24 relies on a name
tar = tarfile.open(name = 'control.tar.gz', fileobj = control)
try:
control = tar.extractfile('./control')
except KeyError: