From: Michael Tremer Date: Sun, 31 Jul 2011 12:11:23 +0000 (+0200) Subject: Add compatibility for old source packages. X-Git-Tag: 0.9.5~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dcd671558254f5deea7a7febb07e00ad6d05369d;p=pakfire.git Add compatibility for old source packages. --- diff --git a/pakfire/packages/base.py b/pakfire/packages/base.py index a02cbb249..53bf55915 100644 --- a/pakfire/packages/base.py +++ b/pakfire/packages/base.py @@ -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)