aboutsummaryrefslogtreecommitdiffhomepage
path: root/git-buildpackage
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2010-09-29 17:09:02 +0200
committerGuido Günther <agx@sigxcpu.org>2010-09-29 17:16:42 +0200
commit223b97a6fb190198050e8a573c4704313d19196f (patch)
tree0a802fee557367abd4582379cdbcc12a5145ce28 /git-buildpackage
parentbeaee6e09d654664614d85e924c14bc74314f2ca (diff)
Fall back to source only changes file
if the architecture one doesn't exist. Closes: #593598
Diffstat (limited to 'git-buildpackage')
-rwxr-xr-xgit-buildpackage3
1 files changed, 3 insertions, 0 deletions
diff --git a/git-buildpackage b/git-buildpackage
index 3fe6f913..f58aa35f 100755
--- a/git-buildpackage
+++ b/git-buildpackage
@@ -409,6 +409,9 @@ def main(argv):
arch = du.get_arch()
changes = os.path.abspath("%s/../%s_%s_%s.changes" %
(build_dir, cp['Source'], version_no_epoch, arch))
+ if not os.path.exists(changes):
+ changes = os.path.abspath("%s/../%s_%s_source.changes" %
+ (build_dir, cp['Source'], version_no_epoch))
Command(options.postbuild, shell=True,
extra_env={'GBP_CHANGES_FILE': changes,
'GBP_BUILD_DIR': build_dir})()