From dcd671558254f5deea7a7febb07e00ad6d05369d Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 31 Jul 2011 14:11:23 +0200 Subject: [PATCH] Add compatibility for old source packages. --- pakfire/packages/base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.39.5