summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-01-05 21:14:32 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-01-05 21:14:32 -0500
commit9b235734a1810e415acfea2eefaeff008a8073a6 (patch)
tree2dfaa3c78d3f741c54e0e413e699c859e95626c7 /src
parent59633ede257e3ebbc81a55e191fee2e83400d477 (diff)
librerelease: list staged source files in a sane way
Diffstat (limited to 'src')
-rwxr-xr-xsrc/abslibre-tools/librerelease9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/abslibre-tools/librerelease b/src/abslibre-tools/librerelease
index b77b6ec..1e07638 100755
--- a/src/abslibre-tools/librerelease
+++ b/src/abslibre-tools/librerelease
@@ -181,10 +181,11 @@ main() {
# The different modes (sans 'usage') ###########################################
pretty_print_packages() {
- find "$WORKDIR/staging/" -mindepth 1 -type d -not -empty -printf '%f\n' | sort |
- while read -r repo; do
- msg2 "$repo"
- find -L "${WORKDIR}/staging/${repo}" -type f -printf "%f\n" | sort
+ find "$WORKDIR/staging/" -mindepth 1 -maxdepth 1 -type d -not -empty | sort |
+ while read -r path; do
+ msg2 "${path##*/}"
+ cd "$path"
+ find -L . -type f | sed 's|^\./| |' | sort
done
}