[Qa-jenkins-scm] [jenkins.debian.net] 02/05: reproducible: common.sh: use python's link_package() to generate the html link. WIP
Holger Levsen
holger at moszumanska.debian.org
Wed Apr 22 07:40:21 UTC 2015
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit f85c2439a83891f3b8f5f53552f731da7da5234b
Author: Mattia Rizzolo <mattia at mapreri.org>
Date: Tue Apr 21 22:39:53 2015 +0200
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(-)
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh
index 949fbfd..e26c7a8 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() {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list