summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_common.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-03-16 13:52:28 +0100
committerHolger Levsen <holger@layer-acht.org>2015-03-16 13:52:28 +0100
commit2b6f9c9eb0d7d115e60b2ecd5412d2ce38fb5787 (patch)
treea0d8d219e1d7f6207b52fe188ea5e99318ccb091 /bin/reproducible_common.sh
parente84bd4035f694c5e0a49e00e4e9381743424963b (diff)
downloadjenkins.debian.net-2b6f9c9eb0d7d115e60b2ecd5412d2ce38fb5787.tar.xz
refactor: rename variable
Diffstat (limited to 'bin/reproducible_common.sh')
-rwxr-xr-xbin/reproducible_common.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh
index 3df77370..fa56d585 100755
--- a/bin/reproducible_common.sh
+++ b/bin/reproducible_common.sh
@@ -88,17 +88,18 @@ schedule_packages() {
}
check_candidates() {
- PACKAGES=""
+ PACKAGE_IDS=""
PACKAGES_NAMES=""
TOTAL=0
for PKG in $CANDIDATES ; do
RESULT=$(sqlite3 -init $INIT ${PACKAGES_DB} "SELECT id, name from sources WHERE name='$PKG' AND suite='$SUITE';")
if [ ! -z "$RESULT" ] ; then
- PACKAGES="$PACKAGES $(echo $RESULT|cut -d '|' -f 1)"
+ PACKAGE_IDS="$PACKAGE_IDS $(echo $RESULT|cut -d '|' -f 1)"
PACKAGES_NAMES="$PACKAGES_NAMES $(echo $RESULT|cut -d '|' -f 2)"
let "TOTAL+=1"
fi
done
+ PACKAGE_IDS=$(echo $PACKAGE_IDS)
case $TOTAL in
1)
PACKAGES_TXT="package"