From 9066ac4b4e5f6fd87376d7cc3d6c20c1de45806b Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Oct 10 2016 02:29:23 +0000 Subject: Merge #118 `Checkout git repo quietly and dump ostree prune output to /dev/null` --- diff --git a/scripts/build-test-ostree b/scripts/build-test-ostree index b8af8aa..7deca14 100755 --- a/scripts/build-test-ostree +++ b/scripts/build-test-ostree @@ -8,7 +8,7 @@ mkdir $COMPOSEDIR/logs/$DATE/ pushd $COMPOSEDIR rm -rf fedora-atomic -git clone https://pagure.io/fedora-atomic.git +git clone -q https://pagure.io/fedora-atomic.git pushd fedora-atomic sed -i -e 's|^mirrorlist.*$|baseurl=https://kojipkgs.fedoraproject.org/repos/rawhide/latest/$basearch/|g' fedora-rawhide.repo popd @@ -32,7 +32,7 @@ do done # keep only the last weeks worth of ostree commits -ostree prune --repo=/mnt/koji/atomic-cd/ --keep-younger-than="7 days ago" --refs-only +ostree prune --repo=/mnt/koji/atomic-cd/ --keep-younger-than="7 days ago" --refs-only > $COMPOSEDIR/logs/$DATE/ostree-prune.log # keep a weeks worth of logs find $COMPOSEDIR/logs/ -xdev -depth -maxdepth 2 -mtime +7 -exec rm -rf {} \;