diff options
author | Dave Reisner <d@falconindy.com> | 2019-01-17 12:47:45 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-17 12:47:45 -0500 |
commit | 81faae5cd21d7932030cf5faf8c3eb76745a2af7 (patch) | |
tree | e07c8d694c8169e1fd9d8152465670158381c0b1 /package.inc.sh | |
parent | ab3449f5ac7c5682520bc13a439c1d37ca2953ae (diff) | |
parent | 36732e5441313234068dd49b3494aea62f3a6b4b (diff) | |
download | asp32-81faae5cd21d7932030cf5faf8c3eb76745a2af7.tar.xz |
Merge pull request #26 from ThePiGrepper/ups/exp/fixes
parsing issue and missing function
Diffstat (limited to 'package.inc.sh')
-rw-r--r-- | package.inc.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/package.inc.sh b/package.inc.sh index 1ae9a5b..7af7a82 100644 --- a/package.inc.sh +++ b/package.inc.sh @@ -74,7 +74,7 @@ package_log() { logargs=() ;; *) - die 'internal error: unknown log method: %s' "$method" + log_fatal 'BUG: unknown log method: %s' "$method" ;; esac @@ -177,7 +177,9 @@ package_get_repos_with_arch() { pkgname=$1 while read -r path; do - IFS=/- read -r _ repo arch <<<"$path" + path=${path##*/} + repo=${path%-*} + arch=${path##*-} printf '%s %s\n' "$repo" "$arch" done < <(git ls-tree --name-only "remotes/$remote/packages/$pkgname" repos/) } |