From 868aa9593bfb3a3dbc95d03704db0ab69afef18c Mon Sep 17 00:00:00 2001 From: Zygmunt Krynicki Date: Mon, 7 Aug 2017 00:21:03 +0200 Subject: [PATCH] Use more natural identification tags Signed-off-by: Zygmunt Krynicki --- code/worker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/worker.py b/code/worker.py index 0915de63..fd074f80 100644 --- a/code/worker.py +++ b/code/worker.py @@ -15,9 +15,9 @@ def main() -> None: header = r.raw.read(8+3) tag = header[8:8+3] name = r.url - if tag == b'\x41\x49\x01': + if tag == b'AI\x01': print("{} looks like a valid type-1 appimage file".format(name)) - elif tag == b'\x41\x49\x02': + elif tag == b'AI\x02': print("{} looks like a valid type-2 appimage file".format(name)) else: raise SystemExit("{} doesn't look like a valid appimage file".format(name))