summaryrefslogtreecommitdiff
path: root/librerelease
diff options
context:
space:
mode:
Diffstat (limited to 'librerelease')
-rwxr-xr-xlibrerelease11
1 files changed, 8 insertions, 3 deletions
diff --git a/librerelease b/librerelease
index c34abaf..4e7c491 100755
--- a/librerelease
+++ b/librerelease
@@ -37,15 +37,20 @@ function usage {
}
function list_packages {
- find $WORKDIR/staging/ -type f -printf "%f\n"
+ repos=($(find "$WORKDIR/staging/" -mindepth 1 -type d \! -empty -printf '%f ' 2>/dev/null))
+ for _repo in ${repos[@]}; do
+ msg2 "$_repo"
+ find ${WORKDIR}/staging/${_repo} -type f -printf "%f\n"
+ done
+ unset repos
}
function clean_non_packages {
- find $WORKDIR/staging/ -type f \! -iname "*.pkg.tar.*" -delete
+ find $WORKDIR/staging/ -type f \! -iname "*.pkg.tar.?z" -delete
}
function clean_packages {
- find ${WORKDIR}/staging/ -iname "*.pkg.tar.*" -delete
+ find ${WORKDIR}/staging/ -iname "*.pkg.tar.?z" -delete
}
while getopts 'hlc' arg; do