[Qa-jenkins-scm] [jenkins.debian.net] 02/02: reproducible fedora rpms: also update yum db, when updating mock

Holger Levsen holger at moszumanska.debian.org
Sat Dec 12 18:54:00 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 0ed39fc09a62682973b0fc6ff506e8eb8fe279ff
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sat Dec 12 19:52:43 2015 +0100

    reproducible fedora rpms: also update yum db, when updating mock
---
 TODO                          | 1 -
 bin/reproducible_build_rpm.sh | 6 ++++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/TODO b/TODO
index 1cbe1e2..82816b5 100644
--- a/TODO
+++ b/TODO
@@ -282,7 +282,6 @@ This is about Debian, below are more todo entries for other projects…
 ==== reproducible Fedora
 
 * build script
-** maintenance should do maintenance of yum too… how so?
 ** how to allow more than one mock builder per node? using schroots?
 ** no variations introduced yet:
 *** use '-j$NUM_CPU' and 'NEW_NUM_CPU=$(echo $NUM_CPU-1|bc)'
diff --git a/bin/reproducible_build_rpm.sh b/bin/reproducible_build_rpm.sh
index a9db601..b38dc19 100755
--- a/bin/reproducible_build_rpm.sh
+++ b/bin/reproducible_build_rpm.sh
@@ -36,15 +36,17 @@ handle_remote_error() {
 }
 
 update_mock() {
-	echo "$(date -u ) - checking whether to update mock for $RELEASE ($ARCH) on $HOSTNAME."
+	echo "$(date -u ) - checking whether to update mock and yum for $RELEASE ($ARCH) on $HOSTNAME."
 	local STAMP="${RPM_STAMPS}-$RELEASE-$ARCH"
 	if [ ! -f $STAMP ] || [ $DUMMY -nt $STAMP ] ; then
 		echo "$(date -u ) - updating mock for $RELEASE ($ARCH) on $HOSTNAME now..."
 		mock -r $RELEASE-$ARCH --resultdir=. --cleanup-after -v --update 2>&1
 		echo "$(date -u ) - mock updated."
+		yum -v check-update
+		echo "$(date -u ) - yum updated."
 		touch $STAMP
 	else
-		echo "$(date -u ) - mock not updated, last update was at $(TZ=UTC ls --full-time $STAMP | cut -d ' ' -f6-7 | cut -d '.' -f1) UTC."
+		echo "$(date -u ) - mock and yum not updated, last update was at $(TZ=UTC ls --full-time $STAMP | cut -d ' ' -f6-7 | cut -d '.' -f1) UTC."
 	fi
 }
 

-- 
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