From 9d2e4a776bb8ac4e2a210d83ae2da61a1065757c Mon Sep 17 00:00:00 2001 From: Bogdano Arendartchuk Date: Tue, 12 Jun 2007 19:00:03 +0000 Subject: Fixed sync to different behavior of parseSpec in rpm-4.8.8 parseSpec must called with _topdir properly defined to the top directory of the package, as it will check the presence of source files. --- RepSys/rpmutil.py | 1 + 1 file changed, 1 insertion(+) diff --git a/RepSys/rpmutil.py b/RepSys/rpmutil.py index fd06627..8cc7034 100644 --- a/RepSys/rpmutil.py +++ b/RepSys/rpmutil.py @@ -402,6 +402,7 @@ def sync(dryrun=False): raise Error, "no .spec files found in %s" % specsdir specpath = specs[0] # FIXME better way? try: + rpm.addMacro("_topdir", os.path.abspath(topdir)) spec = rpm.TransactionSet().parseSpec(specpath) except rpm.error, e: raise Error, "could not load spec file: %s" % e -- cgit v1.2.1