diff options
author | Bogdano Arendartchuk <bogdano@mandriva.org> | 2007-06-12 19:00:03 +0000 |
---|---|---|
committer | Bogdano Arendartchuk <bogdano@mandriva.org> | 2007-06-12 19:00:03 +0000 |
commit | 9d2e4a776bb8ac4e2a210d83ae2da61a1065757c (patch) | |
tree | 20cdc25e566defad2fbcdcf3d1e21246e631271d | |
parent | f7ab5b0c279fe21bfbb65082a512eccabcad5001 (diff) | |
download | mgarepo-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.py | 1 |
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 |