mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-27 02:16:12 +01:00
Fix arch zst magic in util.packagequery
The correct zst magic is b'(\xb5/\xfd' (4 bytes) (that's what obs-build is also using). Kudos to Tobias Ellinghaus for spotting this. Fixes: #756 ("zst detection fails")
This commit is contained in:
parent
e89c49861b
commit
4e8e0492e8
@ -73,7 +73,7 @@ class PackageQuery:
|
||||
f.close()
|
||||
return None
|
||||
# arch tar ball compressed with gz, xz or zst
|
||||
elif magic[:5] == b'\375\067zXZ' or magic[:2] == b'\037\213' or magic[:5] == b'(\xb5/\xfd\x2f':
|
||||
elif magic[:5] == b'\375\067zXZ' or magic[:2] == b'\037\213' or magic[:4] == b'(\xb5/\xfd':
|
||||
from . import archquery
|
||||
pkgquery = archquery.ArchQuery(f)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user