From 86784fd66287e6732fc2e6d8d53bbd6f5d7c3c80 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 17 Dec 2015 17:32:28 +0100 Subject: reproducible rpms: cleanup --- bin/reproducible_build_rpm.sh | 2 +- bin/reproducible_setup_mock.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3-70-g09d2