git_archive: Fixed getting original file name from spec
authorEd Bartosh <eduard.bartosh@intel.com>
Mon, 30 Apr 2012 06:22:40 +0000 (09:22 +0300)
committerEd Bartosh <eduard.bartosh@intel.com>
Tue, 8 May 2012 12:32:01 +0000 (15:32 +0300)
gbp/scripts/buildpackage_rpm.py

index 7d1f9cdf67acede5f05e33012a30f7fdc67b237a..a8029ad445ae22a9c818320b0d87e65a233b1ff8 100755 (executable)
@@ -47,7 +47,7 @@ def git_archive(repo, spec, output_dir, treeish, comp_type, comp_level, with_sub
     except KeyError:
         raise GbpError, "Unsupported compression type '%s'" % comp_type
 
-    output = os.path.join(output_dir, spec.orig_base)
+    output = os.path.join(output_dir, os.path.basename(spec.orig_file))
     prefix = spec.orig_base
 
     try: