From 5cdd451ad936d8bc64056e698f1c2291f1b6ebc1 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Tue, 3 Sep 2019 08:43:34 +0200 Subject: [PATCH] =?utf8?q?Utilizzo=20di=20'branch=20merged'=20in=20debian?= =?utf8?q?=5Ftobeupdated,=20cos=C3=AC=20funziona=20anche=20per=20i=20pacch?= =?utf8?q?etti=20non=20snapshot.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- tools/autobuilder/debian_tobeupdated.sh | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/tools/autobuilder/debian_tobeupdated.sh b/tools/autobuilder/debian_tobeupdated.sh index e211c2d..90ea027 100755 --- a/tools/autobuilder/debian_tobeupdated.sh +++ b/tools/autobuilder/debian_tobeupdated.sh @@ -25,23 +25,10 @@ git pull git checkout $CURRENT_BRANCH git stash pop -# not empty if there's at least one commit be merged -TO_BE_MERGED=`git log --pretty=oneline --graph ..$UPSTREAM_BRANCH | head -n 1 | sed -n -e 's/\* //p'` -TO_BE_MERGED=${TO_BE_MERGED%% *} - -echo "Last commit to be merged: "$TO_BE_MERGED +TO_BE_MERGED=`git branch --merged | grep $UPSTREAM_BRANCH` if [ "$TO_BE_MERGED" = "" ]; then - echo -e "\nNot to be updated." + echo -e "\nThe debian branch must be updated." else - # the snapshot hash of the package - SNAPSHOT_HASH=`head -n 1 debian/changelog | sed -n -e 's/.*\((.*)\).*/\1/;s/.*\(\.gbp\(.*\))\)/\2/p'` - - echo "Debian package snapshot version: "$SNAPSHOT_HASH - - if [ "${TO_BE_MERGED:6}" = "$SNAPSHOT_HASH" ]; then - echo -e "\nNot to be updated." - else - echo -e "\nThe debian branch must be updated." - fi + echo -e "\nNot to be updated." fi -- 2.49.0