diff options
author | Holger Levsen <holger@layer-acht.org> | 2014-10-17 23:32:16 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2014-10-18 01:32:19 +0200 |
commit | a0b4a3c0659e56937ac4ba5ded3aa017a0da9b27 (patch) | |
tree | c7e60b0d0790dd468cfbd016c3558858cf8fdced /bin/reproducible_common.sh | |
parent | 4c048fd44ef1b7d46af3854b0c44a71ff6cbb11d (diff) | |
download | jenkins.debian.net-a0b4a3c0659e56937ac4ba5ded3aa017a0da9b27.tar.xz |
reproducible: only link existing packages and count and thus schedule correctly
Diffstat (limited to 'bin/reproducible_common.sh')
-rwxr-xr-x | bin/reproducible_common.sh | 8 |
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 } |