]> git.ipfire.org Git - pakfire.git/commitdiff
Add compatibility for old source packages.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 31 Jul 2011 12:11:23 +0000 (14:11 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 31 Jul 2011 12:11:23 +0000 (14:11 +0200)
pakfire/packages/base.py

index a02cbb24968d64251315c9b149e7384499d43956..53bf559150a993e3b24e089659767e24d39c905d 100644 (file)
@@ -326,7 +326,10 @@ class Package(object):
                ret = ""
 
                # The default attributes, that are process for the requires.
-               attrs = ("PKG_REQUIRES", "PKG_DEPS")
+               attrs = ["PKG_REQUIRES", "PKG_DEPS",]
+
+               if self.arch == "src":
+                       attrs += ["PKG_BUILD_DEPS",]
 
                for i in attrs:
                        ret = self.metadata.get(i, ret)