summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-12-17 02:29:10 +0100
committerHolger Levsen <holger@layer-acht.org>2015-12-17 02:29:10 +0100
commit910b6c12987f70850808234e517ad6f1ede8e8d7 (patch)
tree29028e999b4b6e1969d885a44383e813941f290a /bin
parent90a0d7c997b37d0a8165b1ae1fd907700af46103 (diff)
downloadjenkins.debian.net-910b6c12987f70850808234e517ad6f1ede8e8d7.tar.xz
reproducible rpms: use dnf instead of yum
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_setup_mock.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/bin/reproducible_setup_mock.sh b/bin/reproducible_setup_mock.sh
index 6c554b18..f5e9306a 100755
--- a/bin/reproducible_setup_mock.sh
+++ b/bin/reproducible_setup_mock.sh
@@ -42,5 +42,13 @@ 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
+#mock -r $RELEASE-$ARCH --resultdir=. -v --chroot yum makecache
+#
+# resulted in:
+#Yum command has been deprecated, redirecting to '/usr/bin/dnf makecache'.
+#See 'man dnf' and 'man yum2dnf' for more information.
+#To transfer transaction metadata from yum to DNF, run:
+mock -r $RELEASE-$ARCH --resultdir=. -v --chroot dnf install python-dnf-plugins-extras-migrate
+mock -r $RELEASE-$ARCH --resultdir=. -v --chroot dnf-2 migrate
+mock -r $RELEASE-$ARCH --resultdir=. -v --chroot dnf makecache