From eb8e148edcfae43ec33f04a7aa647a9fa07cfb9f Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 17 Nov 2020 12:07:16 +0300 Subject: Adapt to bpkg_util_pkg_find_archive() result fields reorder --- brep/handler/submit/submit-git.bash.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'brep/handler/submit/submit-git.bash.in') diff --git a/brep/handler/submit/submit-git.bash.in b/brep/handler/submit/submit-git.bash.in index 983d7b5..cc679c8 100644 --- a/brep/handler/submit/submit-git.bash.in +++ b/brep/handler/submit/submit-git.bash.in @@ -82,10 +82,10 @@ function check_package_duplicate () # 'p=($(run pkg_find_archive "$nam-$ver.*" "$rep/${sections[$s]}"))' if [ "${#p[@]}" -ne 0 ]; then - local n="${p[0]}" - local v="${p[1]}" + local n="${p[1]}" + local v="${p[2]}" - trace "found: $n/$v in ${p[3]}" + trace "found: $n/$v in ${p[0]}" if [ "$n" == "$nam" ]; then exit_with_manifest 422 "duplicate submission" -- cgit v1.1