From dea04d252adcd6cbe80d5aaac9a57c2def1598b5 Mon Sep 17 00:00:00 2001 From: Bogdano Arendartchuk Date: Tue, 12 Jun 2007 18:19:32 +0000 Subject: Fixed sync to different behavior of parseSpec in rpm-4.8.8 --- RepSys/rpmutil.py | 1 + 1 file changed, 1 insertion(+) diff --git a/RepSys/rpmutil.py b/RepSys/rpmutil.py index a74f266..7adb7df 100644 --- a/RepSys/rpmutil.py +++ b/RepSys/rpmutil.py @@ -401,6 +401,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