[SCM] pkg-kde repository scripts branch, master, updated. f6ae4f8a61c7f93340c4cdcd5d5df2686dd20d9b
Modestas Vainius
modax-guest at alioth.debian.org
Sat Nov 14 12:45:16 UTC 2009
The following commit has been merged in the master branch:
commit f3b756214e9a332005f680b4e897b0b5b36e5098
Author: Modestas Vainius <modestas at vainius.eu>
Date: Sat Nov 14 14:05:16 2009 +0200
repository-update: don't do anything if suite list could not be collected.
---
repository-updated | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/repository-updated b/repository-updated
index 0c58ed7..43fd110 100755
--- a/repository-updated
+++ b/repository-updated
@@ -6,7 +6,7 @@ set -e
RECENTLOG="$LOG_DIR/recent.log"
FULLLOG="$LOG_DIR/repository.log"
-SUITES=`grep '^Suite: ' "$REPO/conf/distributions" | sed 's/^Suite:\s\+//'`
+SUITES=`grep '^Suite: ' "$REPO/conf/distributions" 2>/dev/null | sed 's/^Suite:\s\+//'`
# Parse options
force=""
@@ -41,7 +41,9 @@ fi
if [ -s "$RECENTLOG" ] || [ -n "$force" ]; then
# Regenerate index
- "$REPO/reprepro-html-index" $SUITES > "$ARCHIVE_DIR/index.html"
+ if [ -n "$SUITES" ]; then
+ "$REPO/reprepro-html-index" $SUITES > "$ARCHIVE_DIR/index.html"
+ fi
fi
if [ -s "$RECENTLOG" ]; then
--
pkg-kde repository scripts
More information about the pkg-kde-commits
mailing list