summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/reproducible_common.sh')
-rwxr-xr-xbin/reproducible_common.sh8
1 files changed, 6 insertions, 2 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
}