From 202d024994fd54d3d86bcfb65378d72a4a200e40 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sat, 26 Jun 2010 21:31:12 +0200 Subject: Emit condensed status by default. --- localdebpool | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'localdebpool') diff --git a/localdebpool b/localdebpool index 01bbc5f..f80fb0b 100755 --- a/localdebpool +++ b/localdebpool @@ -195,8 +195,10 @@ else exit 1 fi -debugprint "Clean dangling symlinks below \"$PRVBASE\" and \"$PUBBASE\"..." +echo "Clean dangling symlinks..." if [ -n "$DEBUG" ] && [ "$DEBUG" -ge 3 ]; then + echo "Clean dangling symlinks below \"$PRVBASE\" and \"$PUBBASE\"..." + debugprint "symlinks -dr ${DEBUG:+-v} \"$PRVBASE\" \"$PUBBASE\"" symlinks -dr ${DEBUG:+-v} "$PRVBASE" "$PUBBASE" else symlinks -dr ${DEBUG:+-v} "$PRVBASE" "$PUBBASE" > /dev/null @@ -228,10 +230,16 @@ done # # $PUBBASE/dists/$dist/$section/{binary-$arch,source} # +[ -n "$DEBUG" ] || printf "Creating/updating package sections:" for section in $batchsections; do + [ -n "$DEBUG" ] || printf " $section" dists="$(distsfromprvgrpdirs "$PRVBASE/sections/$section")" for dist in $dists; do - debugprint "genlists \"\$PRVBASE/sections/$section/$dist\" -> \"\$PUBBASE/dists/$dist/$section\"" + if [ -n "$DEBUG" ]; then + debugprint "genlists \"\$PRVBASE/sections/$section/$dist\" -> \"\$PUBBASE/dists/$dist/$section\"" + else + printf . + fi prvgrpdir="$PRVBASE/sections/$section/$dist/$section" pubpkgdir="$PUBBASE/dists/$dist/$section" archs="$(archsfromdirs "$prvgrpdir")" @@ -241,11 +249,13 @@ for section in $batchsections; do [ -z "$archs" ] || genlist "$section" "$dist" "source" "$prvgrpdir" "$pubpkgdir" done done +[ -n "$DEBUG" ] || echo " - Done!" # Create/update Release files # # $PUBBASE/dists/$dist/Release # +[ -n "$DEBUG" ] || printf "Creating/updating release files:" allsections="$( \ find "$PRVBASE" -type f -name HINTS -exec cat '{}' ';' \ | sectionsfromhintstream @@ -256,7 +266,9 @@ debugprint "All sections: \"$allsections\"" "2" dists="$(distsfromprvgrpdirs "$PRVBASE/sections")" dists="$(compactlist $dists)" for dist in $dists; do + [ -n "$DEBUG" ] || printf " $dist" genrelease "$dist" ${allsections} done +[ -n "$DEBUG" ] || echo " - Done!" exit 0 -- cgit v1.2.3