aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2007-05-04 18:01:20 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2007-05-04 18:01:20 +0000
commit5e5972ab96383c272af7fe01560a052fec8bacfa (patch)
treeced884b5919e5ce5d9cdee2e93d8c9cbe074db84
parent17ec0273c2fd7c183782672e910f31d20b52abe7 (diff)
downloadmgarepo-5e5972ab96383c272af7fe01560a052fec8bacfa.tar
mgarepo-5e5972ab96383c272af7fe01560a052fec8bacfa.tar.gz
mgarepo-5e5972ab96383c272af7fe01560a052fec8bacfa.tar.bz2
mgarepo-5e5972ab96383c272af7fe01560a052fec8bacfa.tar.xz
mgarepo-5e5972ab96383c272af7fe01560a052fec8bacfa.zip
Use basename of source entries, they may be URLs (and flags don't make
clear if it is a URL or not)
-rw-r--r--RepSys/rpmutil.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/RepSys/rpmutil.py b/RepSys/rpmutil.py
index 651d19f..a8d0b4a 100644
--- a/RepSys/rpmutil.py
+++ b/RepSys/rpmutil.py
@@ -385,7 +385,8 @@ def sync(dryrun=False):
spec = rpm.TransactionSet().parseSpec(specpath)
except rpm.error, e:
raise Error, "could not load spec file: %s" % e
- sources = [name for name, x, y in spec.sources()]
+ sources = [os.path.basename(name)
+ for name, no, flags in spec.sources()]
sourcesst = dict((os.path.basename(path), st)
for st, path in svn.status(sourcesdir, noignore=True))
toadd = []