summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2010-06-26 21:31:12 +0200
committerJonas Smedegaard <dr@jones.dk>2010-06-26 21:31:12 +0200
commit202d024994fd54d3d86bcfb65378d72a4a200e40 (patch)
tree82daa538068ac9706eeb93a8b682be6b1b3c600a
parent47b264def62c9cc6da38da14d32e4f8a524baf23 (diff)
Emit condensed status by default.
-rwxr-xr-xlocaldebpool16
1 files changed, 14 insertions, 2 deletions
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