aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2007-06-12 19:00:03 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2007-06-12 19:00:03 +0000
commit9d2e4a776bb8ac4e2a210d83ae2da61a1065757c (patch)
tree20cdc25e566defad2fbcdcf3d1e21246e631271d
parentf7ab5b0c279fe21bfbb65082a512eccabcad5001 (diff)
downloadmgarepo-9d2e4a776bb8ac4e2a210d83ae2da61a1065757c.tar
mgarepo-9d2e4a776bb8ac4e2a210d83ae2da61a1065757c.tar.gz
mgarepo-9d2e4a776bb8ac4e2a210d83ae2da61a1065757c.tar.bz2
mgarepo-9d2e4a776bb8ac4e2a210d83ae2da61a1065757c.tar.xz
mgarepo-9d2e4a776bb8ac4e2a210d83ae2da61a1065757c.zip
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.
-rw-r--r--RepSys/rpmutil.py1
1 files changed, 1 insertions, 0 deletions
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