summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-04-21 22:39:53 +0200
committerMattia Rizzolo <mattia@mapreri.org>2015-04-21 22:54:38 +0200
commitf85c2439a83891f3b8f5f53552f731da7da5234b (patch)
treef9af95fdcde688cb4aeb258995246537e4bfb03d /bin
parent11f08aa7033883916f20e4990ecf7447037bff00 (diff)
downloadjenkins.debian.net-f85c2439a83891f3b8f5f53552f731da7da5234b.tar.xz
reproducible: common.sh: use python's link_package() to generate the html link. WIP
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_common.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh
index 949fbfd0..e26c7a81 100755
--- a/bin/reproducible_common.sh
+++ b/bin/reproducible_common.sh
@@ -262,14 +262,16 @@ set_package_class() {
}
set_linktarget() {
+ cd "$BASE"
for PKG in $@ ; do
if [ -f $RB_PATH/$SUITE/$ARCH/$PKG.html ] ; then
- set_package_class
- LINKTARGET[$PKG]="<a href=\"/userContent/rb-pkg/$SUITE/$ARCH/$PKG.html\" $CLASS>$PKG</a>"
+ LINKTARGET[$PKG]=$(python3 -c "from reproducible_common import link_package ; \
+ print(link_package('$PKG', '$SUITE', '$ARCH'))")
else
LINKTARGET[$PKG]="$PKG"
fi
done
+ cd - > /dev/null
}
link_packages() {