1
0
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:
Marcus Huewe 2020-02-26 20:01:26 +01:00
parent e89c49861b
commit 4e8e0492e8

View File

@ -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: