diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-12-17 17:32:28 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-12-17 17:32:28 +0100 |
commit | 86784fd66287e6732fc2e6d8d53bbd6f5d7c3c80 (patch) | |
tree | d851b683c215bf8d9088243d86aae6cb0f163bd5 /bin | |
parent | 0b3234e70b9ef0094b56b2fed9fe2298e916ca05 (diff) | |
download | jenkins.debian.net-86784fd66287e6732fc2e6d8d53bbd6f5d7c3c80.tar.xz |
reproducible rpms: cleanup
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_build_rpm.sh | 2 | ||||
-rwxr-xr-x | bin/reproducible_setup_mock.sh | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/bin/reproducible_build_rpm.sh b/bin/reproducible_build_rpm.sh index 8256c276..3b66fc89 100755 --- a/bin/reproducible_build_rpm.sh +++ b/bin/reproducible_build_rpm.sh @@ -43,7 +43,7 @@ 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 --releasever=23 check-update # FIXME: dont hard-code releasever here. rawhide? + yum -v --releasever=23 check-update # FIXME: dont hard-code releasever here. echo "$(date -u ) - yum updated." touch $STAMP else diff --git a/bin/reproducible_setup_mock.sh b/bin/reproducible_setup_mock.sh index 072a7c4b..240b693d 100755 --- a/bin/reproducible_setup_mock.sh +++ b/bin/reproducible_setup_mock.sh @@ -23,9 +23,11 @@ UNIQEEXT="mock_${JOB_NAME#reproducible_builder_${RELEASE}_$ARCH}}" echo "$(date -u) - showing setup." dpkg -l mock id -echo "$(date -u) - cleaning yum." +echo "$(date -u) - cleaning ~/.rpmdb" rm ~/.rpmdb -rf +echo "$(date -u) - cleaning yum" yum -v --releasever=23 clean all +echo "$(date -u) - initialising yum for $RELEASE" yum -v --releasever=23 check yum -v --releasever=23 repolist all echo "$(date -u) - starting to cleanly configure mock for $RELEASE on $ARCH." @@ -41,6 +43,4 @@ echo "$(date -u) - mock --install rpm-build yum" 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) - dnf makecache" -#mock -r $RELEASE-$ARCH --resultdir=. -v --chroot -- dnf --releasever=23 makecache |