diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-04-21 22:39:53 +0200 |
---|---|---|
committer | Mattia Rizzolo <mattia@mapreri.org> | 2015-04-21 22:54:38 +0200 |
commit | f85c2439a83891f3b8f5f53552f731da7da5234b (patch) | |
tree | f9af95fdcde688cb4aeb258995246537e4bfb03d | |
parent | 11f08aa7033883916f20e4990ecf7447037bff00 (diff) | |
download | jenkins.debian.net-f85c2439a83891f3b8f5f53552f731da7da5234b.tar.xz |
reproducible: common.sh: use python's link_package() to generate the html link. WIP
-rwxr-xr-x | bin/reproducible_common.sh | 6 |
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() { |