mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-04 18:46:17 +01:00
Handle uncompressed Debian packages
Debian packages can also be uncompressed in which case the archive contains a control.tar file.
This commit is contained in:
parent
b92f9f76ef
commit
5a13baf2ab
@ -75,6 +75,11 @@ class DebQuery(packagequery.PackageQuery, packagequery.PackageQueryResult):
|
|||||||
decompressed = reader.read()
|
decompressed = reader.read()
|
||||||
tar = tarfile.open(name="control.tar.zst",
|
tar = tarfile.open(name="control.tar.zst",
|
||||||
fileobj=BytesIO(decompressed))
|
fileobj=BytesIO(decompressed))
|
||||||
|
else:
|
||||||
|
control = arfile.get_file(b'control.tar')
|
||||||
|
if control:
|
||||||
|
tar = tarfile.open(name="control.tar",
|
||||||
|
fileobj=control)
|
||||||
if control is None:
|
if control is None:
|
||||||
raise DebError(self.__path, 'missing control.tar')
|
raise DebError(self.__path, 'missing control.tar')
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user