From: Zhang Qiang Date: Thu, 31 May 2012 08:02:55 +0000 (+0800) Subject: Using base name of source file in spec X-Git-Tag: release/20120807~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f5a126795bfc3af683599e82953d9594353b724c;p=tools%2Fgit-buildpackage.git Using base name of source file in spec As some sources are url style, so basename should be extraced to be used. --- diff --git a/gbp/scripts/import_srpm.py b/gbp/scripts/import_srpm.py index 59fe6ce6..e5797610 100755 --- a/gbp/scripts/import_srpm.py +++ b/gbp/scripts/import_srpm.py @@ -210,7 +210,7 @@ def main(argv): orig_tarball = None if options.unpacked: - files = [patch['filename'] for patch in spec.patches.itervalues()] + files = os.path.basename([patch['filename']) for patch in spec.patches.itervalues()] for src in spec.sources.itervalues(): if src['num']: files.append(src['filename'])