[SCM] pkg-kde repository scripts branch, master, updated. f6ae4f8a61c7f93340c4cdcd5d5df2686dd20d9b

Modestas Vainius modax-guest at alioth.debian.org
Sat Nov 14 12:45:15 UTC 2009


The following commit has been merged in the master branch:
commit f1774a5ff51d2ff145d3320074b1d9d9102c71ba
Author: Modestas Vainius <modestas at vainius.eu>
Date:   Sat Nov 14 14:04:15 2009 +0200

    Add an option to force repository updates.
---
 repository-updated |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/repository-updated b/repository-updated
index 7b0977f..0c58ed7 100755
--- a/repository-updated
+++ b/repository-updated
@@ -8,6 +8,18 @@ RECENTLOG="$LOG_DIR/recent.log"
 FULLLOG="$LOG_DIR/repository.log"
 SUITES=`grep '^Suite: ' "$REPO/conf/distributions" | sed 's/^Suite:\s\+//'`
 
+# Parse options
+force=""
+while getopts f opt; do
+	case $opt in
+		f)  force="force";;
+		\?)
+			echo "Usage: $0 [ -f ]"
+			exit 1
+			;;
+	esac
+done
+
 echo_mail_body() {
 	echo "The following repository change(s) were made in the last (10) minutes:"
 	echo
@@ -25,9 +37,14 @@ if [ -s "$RECENTLOG" ]; then
 	echo_mail_body | gpg --homedir "$REPO/keyring" --no-permission-warning \
 		             --default-key 7137AF9F58241E05 --output - --clearsign - | \
 		mail "$MAILTO" -s "$MAIL_SUBJECT"
+fi
+
+if [ -s "$RECENTLOG" ] || [ -n "$force" ]; then
 	# Regenerate index
 	"$REPO/reprepro-html-index" $SUITES > "$ARCHIVE_DIR/index.html"
-	
+fi
+
+if [ -s "$RECENTLOG" ]; then
 	rm -f "$RECENTLOG"
 fi
 

-- 
pkg-kde repository scripts



More information about the pkg-kde-commits mailing list