diff options
author | Dave Reisner <dreisner@archlinux.org> | 2014-09-11 15:04:47 -0400 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2014-09-11 15:04:47 -0400 |
commit | 2f04d93b37172e591220a4fbb1d606d3ddd4b4a4 (patch) | |
tree | 3250e54349eec88b61b69e4d74c7eab0665acf5a /package.inc.sh | |
parent | 5813547dbcd190c6d7e69d61d3a15cd1e8805282 (diff) | |
download | asp32-2f04d93b37172e591220a4fbb1d606d3ddd4b4a4.tar.xz |
forward update requessts to the remote
Diffstat (limited to 'package.inc.sh')
-rw-r--r-- | package.inc.sh | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/package.inc.sh b/package.inc.sh index d382b41..4088990 100644 --- a/package.inc.sh +++ b/package.inc.sh @@ -12,15 +12,7 @@ package_init() { (( do_update )) || return 0 - if ! remote_is_tracking "${!2}" "$pkgname"; then - package_update "$pkgname" "${!2}" || return 1 - fi -} - -package_update() { - local pkgname=$1 remote=$2 - - git fetch "$remote" "packages/$pkgname" + remote_is_tracking "${!2}" "$pkgname" || remote_update_refs "${!2}" "$pkgname" } package_find_remote() { |