import-orig-rpm: download tarball into parent directory
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 17 Jun 2014 08:08:38 +0000 (11:08 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 17 Jun 2014 08:11:39 +0000 (11:11 +0300)
Prevents dirtying of the current Git working directory.

Change-Id: I6eca70b647130a380ba67d5b90fc23354b3974ea
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gbp/scripts/import_orig_rpm.py

index 1d3972a..b1247f1 100755 (executable)
@@ -116,7 +116,7 @@ def find_source(spec, options, args):
     else:
         path = args[0]
     if re.match(r'[a-z]{1,5}://', path):
-        path = download_file('.', path)
+        path = download_file('..', path)
     return RpmUpstreamSource(path)