From f85c2439a83891f3b8f5f53552f731da7da5234b Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Tue, 21 Apr 2015 22:39:53 +0200 Subject: reproducible: common.sh: use python's link_package() to generate the html link. WIP --- bin/reproducible_common.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bin') 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]="$PKG" + 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() { -- cgit v1.2.3-70-g09d2