diff options
author | Dave Reisner <dreisner@archlinux.org> | 2019-01-28 15:02:30 -0500 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2019-01-28 15:02:30 -0500 |
commit | fe50aec47abf45175d01a620e81dc32f35f74fe0 (patch) | |
tree | 5b560da79c08c3f83cb85b0591c11a2cfeb3d934 | |
parent | 205331f5cc20f6d08ef6846721a3c5932a148ed9 (diff) | |
download | asp32-fe50aec47abf45175d01a620e81dc32f35f74fe0.tar.xz |
Drop packages/ suffix from cache entries
-rw-r--r-- | remote.inc.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/remote.inc.sh b/remote.inc.sh index 2c39a55..5ed73af 100644 --- a/remote.inc.sh +++ b/remote.inc.sh @@ -5,7 +5,7 @@ __remote_refcache_update() { log_fatal "failed to update remote $remote" printf '%s' "$refs" | - awk '{ sub(/refs\/heads\//, "", $2); print $2 }' >"$cachefile" + awk '{ sub(/refs\/heads\/packages\//, "", $2); print $2 }' >"$cachefile" } __remote_refcache_is_stale() { @@ -50,7 +50,7 @@ remote_has_package() { remote_get_all_refs "$remote" refs - in_array "packages/$pkgname" "${refs[@]}" + in_array "$pkgname" "${refs[@]}" } remote_is_tracking() { |