summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_common.sh
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-02-27 00:32:48 +0100
committerHolger Levsen <holger@layer-acht.org>2015-03-01 14:37:30 +0100
commitb85d08d121db51367cc79b551d8d939ceedcdf6b (patch)
treed818c986e3409499b69839128e3dc9ec1fea94db /bin/reproducible_common.sh
parentdcc27dc3cd9e6682c1b24a3fa0d8cc4ac5472659 (diff)
downloadjenkins.debian.net-b85d08d121db51367cc79b551d8d939ceedcdf6b.tar.xz
reproducible: move packages files under a suite-named directory, e.g. /rb-pkg/sid/
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 5b8b62f4..363ca745 100755
--- a/bin/reproducible_common.sh
+++ b/bin/reproducible_common.sh
@@ -199,10 +199,14 @@ set_package_class() {
}
set_linktarget() {
+ local SUITE="$1"
+ local ARCH="$2"
+ shift
+ shift
for PKG in $@ ; do
- if [ -f $RB_PATH/$PKG.html ] ; then
+ if [ -f $RB_PATH/$SUITE/$PKG.html ] ; then
set_package_class
- LINKTARGET[$PKG]="<a href=\"/userContent/rb-pkg/$PKG.html\" $CLASS>$PKG</a>"
+ LINKTARGET[$PKG]="<a href=\"/userContent/rb-pkg/$SUITE/$ARCH/$PKG.html\" $CLASS>$PKG</a>"
else
LINKTARGET[$PKG]="$PKG"
fi