mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-28 07:26:15 +01:00
- sigh... python24 fix
This commit is contained in:
parent
6471a1aabf
commit
c57343cfc4
@ -23,7 +23,8 @@ class DebQuery(packagequery.PackageQuery):
|
|||||||
control = arfile.get_file('control.tar.gz')
|
control = arfile.get_file('control.tar.gz')
|
||||||
if control is None:
|
if control is None:
|
||||||
raise DebError('missing control.tar.gz')
|
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:
|
try:
|
||||||
control = tar.extractfile('./control')
|
control = tar.extractfile('./control')
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
Loading…
Reference in New Issue
Block a user