aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2007-06-12 18:19:32 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2007-06-12 18:19:32 +0000
commitdea04d252adcd6cbe80d5aaac9a57c2def1598b5 (patch)
tree2e4e26714149a5fa881ee1f0fd5c6b28b38e3bfb
parent20e7ded57ec45a0c2bbe942b5234814aea275217 (diff)
downloadmgarepo-dea04d252adcd6cbe80d5aaac9a57c2def1598b5.tar
mgarepo-dea04d252adcd6cbe80d5aaac9a57c2def1598b5.tar.gz
mgarepo-dea04d252adcd6cbe80d5aaac9a57c2def1598b5.tar.bz2
mgarepo-dea04d252adcd6cbe80d5aaac9a57c2def1598b5.tar.xz
mgarepo-dea04d252adcd6cbe80d5aaac9a57c2def1598b5.zip
Fixed sync to different behavior of parseSpec in rpm-4.8.8
-rw-r--r--RepSys/rpmutil.py1
1 files changed, 1 insertions, 0 deletions
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