diff options
author | Zhang Qiang <qiang.z.zhang@intel.com> | 2012-05-31 16:02:55 +0800 |
---|---|---|
committer | Zhang Qiang <qiang.z.zhang@intel.com> | 2012-05-31 16:02:55 +0800 |
commit | f5a126795bfc3af683599e82953d9594353b724c (patch) | |
tree | 484ca141f06d2faa36b371b9752a52ca7cd630c1 | |
parent | 9ac14878c92cc53e80815b9ec53133a5fb0399eb (diff) | |
download | git-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-x | gbp/scripts/import_srpm.py | 2 |
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']) |