diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-02-27 21:22:23 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-02-27 22:46:13 +0100 |
commit | f983baed548164b318dc56ca16bc24d0b82f6c03 (patch) | |
tree | 97940d75fe6e3106141e60c6d231b6d21777bf4e | |
parent | 6ea619a95c8e0be88956bc82675e4c0ebcb8dac9 (diff) | |
download | jenkins.debian.net-f983baed548164b318dc56ca16bc24d0b82f6c03.tar.xz |
reproducible: schedule_on_demand: print the package names and suite instead of meaningless package ids
-rwxr-xr-x | bin/reproducible_schedule_on_demand.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bin/reproducible_schedule_on_demand.sh b/bin/reproducible_schedule_on_demand.sh index 551f4d06..7a66947c 100755 --- a/bin/reproducible_schedule_on_demand.sh +++ b/bin/reproducible_schedule_on_demand.sh @@ -25,11 +25,13 @@ schedule_packages() { check_candidates() { PACKAGES="" + PACKAGES_NAMES="" TOTAL=0 for PKG in $CANDIDATES ; do - RESULT=$(sqlite3 -init $INIT ${PACKAGES_DB} "SELECT id from sources WHERE name='$PKG' AND suite='$SUITE';") + RESULT=$(sqlite3 -init $INIT ${PACKAGES_DB} "SELECT id, name from sources WHERE name='$PKG' AND suite='$SUITE';") if [ ! -z "$RESULT" ] ; then - PACKAGES="$PACKAGES $RESULT" + PACKAGES="$PACKAGES $(echo $RESULT|cut -d '|' -f 1)" + PACKAGES_NAMES="$PACKAGES_NAMES $(echo $RESULT|cut -d '|' -f 2)" let "TOTAL+=1" fi done @@ -63,7 +65,7 @@ ACTION="manually rescheduled" if [ -n "${BUILD_URL:-}" ] ; then ACTION="rescheduled by $BUILD_URL" fi -MESSAGE="$TOTAL $PACKAGES_TXT $ACTION: ${PACKAGES:0:256}$BLABLABLA" +MESSAGE="$TOTAL $PACKAGES_TXT $ACTION for $SUITE: ${PACKAGES_NAMES:0:256}$BLABLABLA" # finally schedule_packages @@ -72,6 +74,6 @@ echo echo "$MESSAGE" kgb-client --conf /srv/jenkins/kgb/debian-reproducible.conf --relay-msg "$MESSAGE" echo "=============================================================================" -echo "The following $TOTAL source $PACKAGES_TXT $ACTION: $PACKAGES" +echo "The following $TOTAL source $PACKAGES_TXT $ACTION for $SUITE: $PACKAGES_NAMES" echo "=============================================================================" echo |