From: Michael Tremer Date: Mon, 25 Jul 2011 15:01:34 +0000 (+0200) Subject: Fix detection of the compression of the package files. X-Git-Tag: 0.9.4~6^2~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14169fddd1b3601cbfff84bfa60dbab7dcf0d2b2;p=pakfire.git Fix detection of the compression of the package files. --- diff --git a/pakfire/packages/file.py b/pakfire/packages/file.py index 8c89a4890..3ee069dcf 100644 --- a/pakfire/packages/file.py +++ b/pakfire/packages/file.py @@ -310,13 +310,7 @@ class FilePackage(Package): """ Return the compression type of the payload. """ - comp = self.metadata.get("PKG_PAYLOAD_COMP", None) - - # Remove triple X placeholder that was used some time. - if comp == "X"*3: - return None - - return comp or "xz" + return self.metadata.get("PKG_PAYLOAD_COMP", None) @property def signature(self):