From 0b3234e70b9ef0094b56b2fed9fe2298e916ca05 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 17 Dec 2015 17:18:58 +0100 Subject: reproducible fedora rpms: configure yum correctly inside mock --- bin/reproducible_build_rpm.sh | 2 +- bin/reproducible_setup_mock.sh | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'bin') diff --git a/bin/reproducible_build_rpm.sh b/bin/reproducible_build_rpm.sh index b754fb71..8256c276 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 check-update + yum -v --releasever=23 check-update # FIXME: dont hard-code releasever here. rawhide? echo "$(date -u ) - yum updated." touch $STAMP else diff --git a/bin/reproducible_setup_mock.sh b/bin/reproducible_setup_mock.sh index 7c48640f..072a7c4b 100755 --- a/bin/reproducible_setup_mock.sh +++ b/bin/reproducible_setup_mock.sh @@ -25,9 +25,9 @@ dpkg -l mock id echo "$(date -u) - cleaning yum." rm ~/.rpmdb -rf -yum -v clean all -yum -v check -yum -v repolist all +yum -v --releasever=23 clean all +yum -v --releasever=23 check +yum -v --releasever=23 repolist all echo "$(date -u) - starting to cleanly configure mock for $RELEASE on $ARCH." echo "$(date -u) - mock --clean" mock -r $RELEASE-$ARCH --resultdir=. -v --clean @@ -37,10 +37,10 @@ tree /var/cache/mock/ echo "$(date -u) - mock --init" mock -r $RELEASE-$ARCH --resultdir=. -v --init echo "$(date -u) - mock configured for $RELEASE on $ARCH." -echo "$(date -u) - mock --install rpm-build" +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) - yum makecache" -mock -r $RELEASE-$ARCH --resultdir=. -v --chroot dnf makecache +#echo "$(date -u) - dnf makecache" +#mock -r $RELEASE-$ARCH --resultdir=. -v --chroot -- dnf --releasever=23 makecache -- cgit v1.2.3-70-g09d2