summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build_rpm.sh2
-rwxr-xr-xbin/reproducible_setup_mock.sh12
2 files changed, 7 insertions, 7 deletions
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