[DRE-commits] [pkg-ruby-extras] 01/01: upload; only look for *.changes _after_ the build

Antonio Terceiro terceiro at moszumanska.debian.org
Wed Mar 2 14:32:45 UTC 2016


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to branch quick-start
in repository pkg-ruby-extras.

commit 1417e3c474976590869728ce6bc12d930a26788e
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Wed Mar 2 11:32:27 2016 -0300

    upload; only look for *.changes _after_ the build
---
 upload | 23 ++++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)

diff --git a/upload b/upload
index 9b39b82..1c8a1ad 100755
--- a/upload
+++ b/upload
@@ -109,17 +109,6 @@ ask_to_proceed() {
 source=$(dpkg-parsechangelog -SSource)
 version=$(dpkg-parsechangelog -SVersion | sed -e 's/^[0-9]\+://') # remove epoch
 arch=$(dpkg --print-architecture)
-changes=${source}_${version}_${arch}.changes
-if [ -e "../$changes" ]; then
-  changes="../$changes"
-else
-  if [ -e "../build-area/$changes" ]; then
-    changes="../build-area/$changes"
-  else
-    "echo E: $changes not found!"
-    exit 1
-  fi
-fi
 
 # target distribution/host
 distribution=$(dpkg-parsechangelog -SDistribution)
@@ -157,6 +146,18 @@ if [ "$BUILD" = 'yes' ]; then
   gbp buildpackage $git_builder "$@"
 fi
 
+changes=${source}_${version}_${arch}.changes
+if [ -e "../$changes" ]; then
+  changes="../$changes"
+else
+  if [ -e "../build-area/$changes" ]; then
+    changes="../build-area/$changes"
+  else
+    "echo E: $changes not found!"
+    exit 1
+  fi
+fi
+
 if [ "$UPLOAD" = 'no' ]; then
   exit 0
 fi

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/pkg-ruby-extras.git



More information about the Pkg-ruby-extras-commits mailing list