aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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