summaryrefslogtreecommitdiff
path: root/librerelease
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernandez <hahj87@gmail.com>2011-05-19 02:02:22 -0500
committerJoshua Ismael Haase Hernandez <hahj87@gmail.com>2011-05-19 02:02:22 -0500
commit2e4d78c7768119a75bba8ae5eab98c1a6026ea89 (patch)
tree8483171dde27eb8dc89a868b10155b5be28450ce /librerelease
parent64a0772ca0f9d542ab8a94bd16a1edc78f5b40db (diff)
* fullpkg uses options and librerelease
* librerelease tell wich repo for each pkg when listing
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