]> git.ipfire.org Git - pakfire.git/commitdiff
Fix saving the supported architectures to source packages.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 1 Feb 2012 23:43:00 +0000 (00:43 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 1 Feb 2012 23:43:00 +0000 (00:43 +0100)
python/pakfire/packages/make.py

index ca64ed3d666878d4cb5f7c7cbb6758311295d588..b81ae32a51f32a818208239c5b24b2197e52e4de 100644 (file)
@@ -183,7 +183,7 @@ class MakefileBase(Package):
                """
                # If the package architecture is "noarch", the package
                # needs only to be built for that.
-               if self.arch == "noarch":
+               if self.lexer.get_var("arch", "all") == "noarch":
                        return "noarch"
 
                return self.lexer.get_var("sup_arches", "all")