buildpackage/git_archive_single: use GitRepository.archive()
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 15 May 2012 15:13:43 +0000 (18:13 +0300)
committerJun Wang <junbill.wang@samsung.com>
Tue, 26 Jan 2016 20:50:37 +0000 (04:50 +0800)
Use GitRepository.archive() method like git_archive_submodules() does.
This makes it possible to call git_archive_single() independent of the
callers current working directory.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Conflicts:
gbp/scripts/common/buildpackage.py

gbp/scripts/common/buildpackage.py

index f95837c..c34b491 100644 (file)
@@ -19,6 +19,8 @@
 """Common functionality for Debian and RPM buildpackage scripts"""
 
 import os, os.path
+import pipes
+import tempfile
 import subprocess
 import shutil