summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-10-13 15:35:11 +0200
committerHolger Levsen <holger@layer-acht.org>2014-10-13 15:35:11 +0200
commite0c98eb6b2342801daff0b64cbaa7ee6cfcb5079 (patch)
tree9213891ed61d8bad44a44e057f16041feb064f45
parenta4a856948aee799dd509cf3bdab283c8b676df72 (diff)
downloadjenkins.debian.net-e0c98eb6b2342801daff0b64cbaa7ee6cfcb5079.tar.xz
reproducible: rename variables
-rwxr-xr-xbin/reproducible_scheduler.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/reproducible_scheduler.sh b/bin/reproducible_scheduler.sh
index 47ef54a5..f5498484 100755
--- a/bin/reproducible_scheduler.sh
+++ b/bin/reproducible_scheduler.sh
@@ -143,13 +143,13 @@ select_old_versions() {
schedule_packages() {
DATE=$(date +'%Y-%m-%d %H:%M')
TMPFILE=$(mktemp)
- for PKG in $CANDIDATES ; do
+ for PKG in $ALL_PACKAGES ; do
echo "INSERT INTO sources_scheduled VALUES ('$PKG','$DATE','');" >> $TMPFILE
done
cat $TMPFILE | sqlite3 -init $INIT ${PACKAGES_DB}
rm $TMPFILE
echo "============================================================================="
- echo "The following $TOTAL source packages have been scheduled: $CANDIDATES"
+ echo "The following $TOTAL source packages have been scheduled: $ALL_PACKAGES"
echo "============================================================================="
echo
}
@@ -171,7 +171,7 @@ echo "Requesting 200 unknown packages..."
select_unknown_packages 200
let "TOTAL=$SCHEDULED+$AMOUNT"
echo "So in total now $TOTAL packages about to be scheduled."
-CANDIDATES=$PACKAGES
+ALL_PACKAGES="$PACKAGES"
MESSAGE="Scheduled $AMOUNT unknown packages"
if [ $TOTAL -le 250 ] ; then
@@ -183,7 +183,7 @@ echo "Requesting $NEW new packages..."
select_new_versions $NEW
let "TOTAL=$TOTAL+$AMOUNT"
echo "So in total now $TOTAL packages about to be scheduled."
-CANDIDATES="$CANDIDATES $PACKAGES"
+ALL_PACKAGES="$ALL_PACKAGES $PACKAGES"
MESSAGE="$MESSAGE, $AMOUNT packages with new versions"
if [ $TOTAL -lt 250 ] ; then
@@ -197,7 +197,7 @@ echo "Requesting $OLD old packages..."
select_old_versions $OLD
let "TOTAL=$TOTAL+$AMOUNT"
echo "So in total now $TOTAL packages about to be scheduled."
-CANDIDATES="$CANDIDATES $PACKAGES"
+ALL_PACKAGES="$ALL_PACKAGES $PACKAGES"
MESSAGE="$MESSAGE and $AMOUNT packages with the same version again, for a total of $TOTAL scheduled packages."
# finally