From: Markus Lehtonen Date: Tue, 15 May 2012 15:13:43 +0000 (+0300) Subject: buildpackage/git_archive_single: use GitRepository.archive() X-Git-Tag: debian/0.6.26~102 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=776d37c2d95da3cd992892b22e16bc117653cfd9;p=tools%2Fgit-buildpackage.git buildpackage/git_archive_single: use GitRepository.archive() 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 Conflicts: gbp/scripts/common/buildpackage.py --- diff --git a/gbp/scripts/common/buildpackage.py b/gbp/scripts/common/buildpackage.py index f95837c..c34b491 100644 --- a/gbp/scripts/common/buildpackage.py +++ b/gbp/scripts/common/buildpackage.py @@ -19,6 +19,8 @@ """Common functionality for Debian and RPM buildpackage scripts""" import os, os.path +import pipes +import tempfile import subprocess import shutil