[Piuparts-commits] [SCM] piuparts git repository branch, develop, updated. 0.49-60-g87e23c3
Andreas Beckmann
anbe at debian.org
Thu Feb 21 09:40:46 UTC 2013
The following commit has been merged in the develop branch:
commit ec288a4f44921944fc0ee9f87d3598b2a8da326d
Author: Andreas Beckmann <anbe at debian.org>
Date: Tue Feb 5 17:01:32 2013 +0100
prepare_backup: skip missing counts.txt files
avoid noise for newly added sections without a full report run
Signed-off-by: Andreas Beckmann <anbe at debian.org>
diff --git a/master-bin/prepare_backup b/master-bin/prepare_backup
index 5efec36..2ea9b8c 100755
--- a/master-bin/prepare_backup
+++ b/master-bin/prepare_backup
@@ -1,4 +1,5 @@
#!/bin/sh
+set -e
# Copyright 2009 Holger Levsen (holger at layer-acht.org)
#
@@ -51,7 +52,8 @@ BACKUPDIR=/org/piuparts.debian.org/backup
HTDOCS=/org/piuparts.debian.org/htdocs
for SECTION in $SECTIONS ; do
- mkdir -p $BACKUPDIR/$SECTION
- cp $HTDOCS/$SECTION/counts.txt $BACKUPDIR/$SECTION/
+ if [ -f $HTDOCS/$SECTION/counts.txt ]; then
+ mkdir -p $BACKUPDIR/$SECTION
+ cp $HTDOCS/$SECTION/counts.txt $BACKUPDIR/$SECTION/
+ fi
done
-
--
piuparts git repository
More information about the Piuparts-commits
mailing list