From 6573b681069c55ba6362cc06bb976ad22941db3a Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 13 Dec 2015 00:20:59 +0100 Subject: reproducible fedora rpms: try harder to reset mock --- TODO | 1 + bin/reproducible_setup_mock.sh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/TODO b/TODO index 82816b53..cc835956 100644 --- a/TODO +++ b/TODO @@ -282,6 +282,7 @@ This is about Debian, below are more todo entries for other projects… ==== reproducible Fedora * build script +** cleanup mock cache between two builds. --scrub=all might be too much, but whats sensible (or is it --scrub=all?)? ** how to allow more than one mock builder per node? using schroots? ** no variations introduced yet: *** use '-j$NUM_CPU' and 'NEW_NUM_CPU=$(echo $NUM_CPU-1|bc)' diff --git a/bin/reproducible_setup_mock.sh b/bin/reproducible_setup_mock.sh index 0554f014..16f7bdef 100755 --- a/bin/reproducible_setup_mock.sh +++ b/bin/reproducible_setup_mock.sh @@ -25,5 +25,7 @@ echo "$(date -u) - cleaning yum." yum -v clean all echo "$(date -u) - starting to cleanly configure mock for $RELEASE on $ARCH." mock -r $RELEASE-$ARCH --resultdir=. -v --clean +mock -r $RELEASE-$ARCH --resultdir=. -v --scrub=all +tree /var/cache/mock/ mock -r $RELEASE-$ARCH --resultdir=. -v --init echo "$(date -u) - mock configured for $RELEASE on $ARCH." -- cgit v1.2.3-70-g09d2