diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-12-14 19:33:25 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-12-14 19:33:25 +0100 |
commit | 7bb713f14db4e12587241c852fc8910b3affa0cf (patch) | |
tree | ff93c14336fe94e381ee1be032c10439d90382c6 | |
parent | 7b9f1a8b0bcb231bc18b18f4443e1b469ae53ae0 (diff) | |
download | jenkins.debian.net-7bb713f14db4e12587241c852fc8910b3affa0cf.tar.xz |
reproducible rpms: don't try to use yum inside mock, it doesnt work, for whatever reason
-rwxr-xr-x | bin/reproducible_build_rpm.sh | 5 | ||||
-rwxr-xr-x | bin/reproducible_setup_mock.sh | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/bin/reproducible_build_rpm.sh b/bin/reproducible_build_rpm.sh index 6b12d298..dd76a39d 100755 --- a/bin/reproducible_build_rpm.sh +++ b/bin/reproducible_build_rpm.sh @@ -42,8 +42,9 @@ update_mock() { 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." + # set the end of reproducible_setup_mock to learn why this is commented out + #yum -v check-update + #echo "$(date -u ) - yum updated." touch $STAMP else 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." diff --git a/bin/reproducible_setup_mock.sh b/bin/reproducible_setup_mock.sh index 6c554b18..42efc66f 100755 --- a/bin/reproducible_setup_mock.sh +++ b/bin/reproducible_setup_mock.sh @@ -41,6 +41,8 @@ echo "$(date -u) - mock --install rpm-build" mock -r $RELEASE-$ARCH --resultdir=. -v --install rpm-build yum echo "$(date -u) - mock --update" mock -r $RELEASE-$ARCH --resultdir=. -v --update -echo "$(date -u) - yum makecache" -mock -r $RELEASE-$ARCH --resultdir=. -v --chroot yum makecache +# AIUI, this should work but fails with "UnboundLocalError: local variable 'chrootstate' referenced before assignment" +# as can be seen in https://jenkins.debian.net/view/reproducible/job/reproducible_setup_mock_fedora-23_x86_64_profitbricks3/13/console +#echo "$(date -u) - yum makecache" +#mock -r $RELEASE-$ARCH --resultdir=. -v --chroot yum makecache |