index : asp32 | |
Archlinux32 fork of asp - obsolete | gitolite user |
summaryrefslogtreecommitdiff |
author | Dave Reisner <dreisner@archlinux.org> | 2014-08-21 14:27:32 -0400 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2014-08-21 14:27:32 -0400 |
commit | 07719f2096928f62c015b9bff6daa74540cf2194 (patch) | |
tree | 3c6bb74fe21c08980d3616853f7c35fc41f51549 /asp.in | |
parent | a0a8880db3b4fa5e8ed871525723c016d20135bf (diff) |
-rw-r--r-- | asp.in | 11 |
@@ -58,6 +58,11 @@ update_packages() { local refspecs=() remote pkgname declare -A refspec_map + if (( $# == 0 )); then + update_all + return + fi + # map packages to remotes for pkgname; do package_init -n "$pkgname" remote || return 1 @@ -202,11 +207,7 @@ shift case $action in update) - if (( $# == 0 )); then - update_all - else - update_packages "$@" - fi + update_packages "$@" ;; list-repos) map package_get_repos "$@" |