summaryrefslogtreecommitdiffhomepage
path: root/gbp
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2016-07-03 20:27:20 +0200
committerGuido Günther <agx@sigxcpu.org>2016-07-04 17:23:02 +0200
commit94b6b91c51cb9ab372bf4b561145e9cec0c2c3b5 (patch)
tree20bfae8377d5f366f7ce704322562e51c7344771 /gbp
parentf9ded2f342e8b22171cbadb3d7e55830eff21823 (diff)
buildpackage: drop repo_dir
repo.path has the same info and it's only used once Git-Dch: Ignore
Diffstat (limited to 'gbp')
-rwxr-xr-xgbp/scripts/buildpackage.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/gbp/scripts/buildpackage.py b/gbp/scripts/buildpackage.py
index eb704c76..22d6daa0 100755
--- a/gbp/scripts/buildpackage.py
+++ b/gbp/scripts/buildpackage.py
@@ -643,8 +643,6 @@ def main(argv):
except GitRepositoryError:
gbp.log.err("%s is not a git repository" % (os.path.abspath('.')))
return 1
- else:
- repo_dir = os.path.abspath(os.path.curdir)
try:
Command(options.cleaner, shell=True)()
@@ -715,11 +713,9 @@ def main(argv):
if not source.is_native() and options.postexport:
prepare_upstream_tarball(repo, source.changelog, options, tarball_dir,
output_dir)
-
- if options.export_dir:
build_dir = export_dir
else:
- build_dir = repo_dir
+ build_dir = repo.path
if options.prebuild:
Hook('Prebuild', options.prebuild,