buildpackage_rpm: Used basename instead of filename
authorEd Bartosh <eduard.bartosh@intel.com>
Thu, 19 Apr 2012 09:50:59 +0000 (12:50 +0300)
committerEd Bartosh <eduard.bartosh@intel.com>
Tue, 8 May 2012 12:30:45 +0000 (15:30 +0300)
gbp/scripts/buildpackage_rpm.py

index ccf7d5515dabb54b8a65ba3f318d8d7d491b1dae..7d1f9cdf67acede5f05e33012a30f7fdc67b237a 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_file)
+    output = os.path.join(output_dir, spec.orig_base)
     prefix = spec.orig_base
 
     try: