summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhang Qiang <qiang.z.zhang@intel.com>2012-05-31 16:02:55 +0800
committerZhang Qiang <qiang.z.zhang@intel.com>2012-05-31 16:02:55 +0800
commitf5a126795bfc3af683599e82953d9594353b724c (patch)
tree484ca141f06d2faa36b371b9752a52ca7cd630c1
parent9ac14878c92cc53e80815b9ec53133a5fb0399eb (diff)
downloadgit-buildpackage-f5a126795bfc3af683599e82953d9594353b724c.tar.gz
git-buildpackage-f5a126795bfc3af683599e82953d9594353b724c.tar.bz2
git-buildpackage-f5a126795bfc3af683599e82953d9594353b724c.zip
Using base name of source file in spec
As some sources are url style, so basename should be extraced to be used.
-rwxr-xr-xgbp/scripts/import_srpm.py2
1 files changed, 1 insertions, 1 deletions
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'])