diff options
author | Joshua I. Haase H. (xihh) <hahj87@gmail.com> | 2012-05-08 01:58:02 -0500 |
---|---|---|
committer | Joshua I. Haase H. (xihh) <hahj87@gmail.com> | 2012-05-08 01:58:02 -0500 |
commit | 3dcf773de928a0a587f0409d2bd1d7ecad80b549 (patch) | |
tree | bf66d492479bb9f454b9700b58fc53c114ae4e7d /toru-utils | |
parent | e13b2d4ae996c164b8082bfa18a7351ddb4467d7 (diff) | |
parent | 112b6427bf299b9db8fc34e5b771fecf1958db07 (diff) |
Merge branch 'master' of gitpar:libretools
Conflicts:
toru-utils
Diffstat (limited to 'toru-utils')
-rwxr-xr-x | toru-utils | 15 |
1 files changed, 6 insertions, 9 deletions
@@ -59,17 +59,14 @@ get_pkgbuilds() { $QUIET || warning "Forcing upgrade" # Get all PKGBUILDs - pkgbuilds=($(find $@ -mindepth 2 -maxdepth 3 -type f -name 'PKGBUILD')) - + extra="" else - # Only find newer than lastsyncfile and read everything else from cache - pkgbuilds=($(find $@ -mindepth 2 -maxdepth 3 -type f -name 'PKGBUILD' -newer ${LASTSYNCFILE})) - + extra=" -newer ${LASTSYNCFILE}" fi # Return all PKGBUILDs found - echo ${pkgbuilds[@]} + find $@ -mindepth 2 -maxdepth 3 -type f -name 'PKGBUILD' ${extra} } # End inmediately but print a useful message @@ -81,6 +78,6 @@ trap_exit() { # Trap signals from makepkg set -E -trap 'trap_exit "($(basename $0):${level}) TERM signal caught. Exiting..."' TERM HUP QUIT -trap 'trap_exit "($(basename $0):${level}) Aborted by user! Exiting..."' INT -trap 'trap_exit "($(basename $0):${level}) An unknown error has occurred. Exiting..."' ERR +trap 'trap_exit "TERM signal caught. Exiting..."' TERM HUP QUIT +trap 'trap_exit "Aborted by user! Exiting..."' INT +trap 'trap_exit "An unknown error has occurred. Exiting..."' ERR |