From 83c397b7e5178eca9c4ad1e6d9856ceef284af55 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 17 Oct 2014 22:47:13 +0200 Subject: reproducible: refactor, cache information whether .buildinfo file exist --- bin/reproducible_common.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh index 7321bf70..d7975ea6 100755 --- a/bin/reproducible_common.sh +++ b/bin/reproducible_common.sh @@ -241,7 +241,7 @@ publish_page() { } set_package_star() { - if [ ! -z "$(find /var/lib/jenkins/userContent/buildinfo/ -name ${PKG}_*_amd64.buildinfo)" ] ; then + if [ -f /var/lib/jenkins/userContent/buildinfo/${SRCPACKAGE}_.buildinfo ] ; then STAR="β" # used to be a star... else STAR="" @@ -318,6 +318,10 @@ process_packages() { NOTES_LINK=" notes " fi set_package_star + if [ -f "/var/lib/jenkins/userContent/buildinfo/${PKG}_${EVERSION}_amd64.buildinfo" ] ; then + STAR="has buildinfo" + touch /var/lib/jenkins/userContent/buildinfo/${PKG}_.buildinfo + fi init_pkg_page "$PKG" "$VERSION" "$STATUS" "$BUILD_DATE" "$STAR" append2pkg_page "${NOTES_LINK}" if [ -f "/var/lib/jenkins/userContent/buildinfo/${PKG}_${EVERSION}_amd64.buildinfo" ] ; then -- cgit v1.2.3-70-g09d2