From ca3a8b95192457ecc8ae5cf7f125a8a27efe3c59 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Tue, 28 Jul 2015 11:19:20 +0000 Subject: reproducible: maintenance: be silent when succesfully deleting old schroot --- bin/reproducible_maintenance.sh | 2 +- logparse/reproducible.rules | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh index f36e3e19..bc6ccb14 100755 --- a/bin/reproducible_maintenance.sh +++ b/bin/reproducible_maintenance.sh @@ -51,7 +51,7 @@ fi OLDSTUFF=$(find /schroots/ -maxdepth 1 -type d -regextype posix-extended -regex "/schroots/reproducible-.*-[0-9]{1,5}" -mtime +2 -exec ls -lad {} \;) if [ ! -z "$OLDSTUFF" ] ; then echo - echo "Warning: old schroots found in /schroots, which have been deleted:" + echo "Old schroots found in /schroots, which have been deleted:" find /schroots/ -maxdepth 1 -type d -regextype posix-extended -regex "/schroots/reproducible-.*-[0-9]{1,5}" -mtime +2 -exec sudo rm -rf --one-file-system {} \; echo "$OLDSTUFF" OLDSTUFF=$(find /schroots/ -maxdepth 1 -type d -regextype posix-extended -regex "/schroots/reproducible-.*-[0-9]{1,5}" -mtime +2 -exec ls -lad {} \;) diff --git a/logparse/reproducible.rules b/logparse/reproducible.rules index 1e86d319..a53704ad 100644 --- a/logparse/reproducible.rules +++ b/logparse/reproducible.rules @@ -6,7 +6,7 @@ warning /Warning: Download of .+ sources failed./ warning /Warning: .+ contains invalid yaml, please fix./ warning /Warning: old temp directories found in .+/ warning /Warning: lock .+ still exists, exiting./ -warning /Warning: old schroots found in /schroots, which have been deleted:/ +warning /Warning: Tried, but failed to delete these:/ warning /Warning: processes found which should not be there/ warning /Warning: Found files with bad permissions.+/ warning /Warning: .+ could not be fully removed./ -- cgit v1.2.3-70-g09d2