From 5e5972ab96383c272af7fe01560a052fec8bacfa Mon Sep 17 00:00:00 2001 From: Bogdano Arendartchuk Date: Fri, 4 May 2007 18:01:20 +0000 Subject: Use basename of source entries, they may be URLs (and flags don't make clear if it is a URL or not) --- RepSys/rpmutil.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'RepSys/rpmutil.py') 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 = [] -- cgit v1.2.1