diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-12-12 19:52:43 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-12-12 19:52:43 +0100 |
commit | 0ed39fc09a62682973b0fc6ff506e8eb8fe279ff (patch) | |
tree | a9cca06e8dfd1deb26c31e2ae54d86094c3e0b61 /bin | |
parent | baf662788dc8ddcbe55f98a6caf80480c6822858 (diff) | |
download | jenkins.debian.net-0ed39fc09a62682973b0fc6ff506e8eb8fe279ff.tar.xz |
reproducible fedora rpms: also update yum db, when updating mock
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_build_rpm.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/reproducible_build_rpm.sh b/bin/reproducible_build_rpm.sh index a9db601a..b38dc19c 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 } |