]> git.ipfire.org Git - pakfire.git/commitdiff
Fix detection of the compression of the package files.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 25 Jul 2011 15:01:34 +0000 (17:01 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 25 Jul 2011 15:01:34 +0000 (17:01 +0200)
pakfire/packages/file.py

index 8c89a4890539730d53b78dfa1e7d1df373a9d54f..3ee069dcf45dfc462aef939a1635294df87cfc37 100644 (file)
@@ -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):