aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xexamples/gbp-cowbuilder-sid1
-rwxr-xr-xgit-buildpackage6
2 files changed, 5 insertions, 2 deletions
diff --git a/examples/gbp-cowbuilder-sid b/examples/gbp-cowbuilder-sid
index bcbf1483..4021f23c 100755
--- a/examples/gbp-cowbuilder-sid
+++ b/examples/gbp-cowbuilder-sid
@@ -30,6 +30,7 @@ case $ACTION in
# pass all options to dpkg-buildpackage:
pdebuild --configfile ${CONF} \
--pbuilder cowbuilder \
+ --buildresult ${GBP_BUILD_DIR}/.. \
--debbuildopts "-i\.git/ -I.git $*" \
-- $OPTS
;;
diff --git a/git-buildpackage b/git-buildpackage
index 73621568..2e9ebdda 100755
--- a/git-buildpackage
+++ b/git-buildpackage
@@ -282,13 +282,15 @@ def main(argv):
build_dir = repo_dir
# Finally build the package:
- RunAtCommand(options.builder, dpkg_args, shell=True)(dir=build_dir)
+ RunAtCommand(options.builder, dpkg_args, shell=True,
+ extra_env={'GBP_BUILD_DIR': build_dir})(dir=build_dir)
if options.postbuild:
arch = du.get_arch()
changes = os.path.abspath("%s/../%s_%s_%s.changes" %
(build_dir, cp['Source'], version_no_epoch, arch))
Command(options.postbuild, shell=True,
- extra_env={'GBP_CHANGES_FILE': changes})()
+ extra_env={'GBP_CHANGES_FILE': changes,
+ 'GBP_BUILD_DIR': build_dir})()
if options.tag or options.tag_only:
print "Tagging %s" % version
tag = build_tag(options.debian_tag, version)