summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_common.sh8
-rwxr-xr-xbin/reproducible_scheduler.sh2
2 files changed, 7 insertions, 3 deletions
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh
index 1a30bbaa..38c1333f 100755
--- a/bin/reproducible_common.sh
+++ b/bin/reproducible_common.sh
@@ -258,8 +258,12 @@ set_package_class() {
force_package_targets() {
for PKG in $@ ; do
- set_package_class
- LINKTARGET[$PKG]="<a href=\"$JENKINS_URL/userContent/rb-pkg/$PKG.html\" $CLASS>$PKG</a>"
+ if [ -f /var/lib/jenkins/userContent/rb-pkg/$PKG.html ] ; then
+ set_package_class
+ LINKTARGET[$PKG]="<a href=\"$JENKINS_URL/userContent/rb-pkg/$PKG.html\" $CLASS>$PKG</a>"
+ else
+ LINKTARGET[$PKG]="$PKG"
+ fi
done
}
diff --git a/bin/reproducible_scheduler.sh b/bin/reproducible_scheduler.sh
index c0ee4d39..67d21745 100755
--- a/bin/reproducible_scheduler.sh
+++ b/bin/reproducible_scheduler.sh
@@ -162,7 +162,7 @@ update_sources_table
echo "Requesting 200 unknown packages..."
select_unknown_packages 200
-let "TOTAL=$SCHEDULED+$AMOUNT"
+let "TOTAL=$COUNT_SCHEDULED+$AMOUNT"
echo "So in total now $TOTAL packages about to be scheduled."
ALL_PACKAGES="$PACKAGES"
MESSAGE="Scheduled $AMOUNT unknown packages"