aboutsummaryrefslogtreecommitdiff
path: root/bpkg-util
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-11-13 17:23:09 +0300
committerFrancois Kritzinger <francois@codesynthesis.com>2020-11-16 10:13:01 +0200
commit4dbaed0d852d4b291c23a44fb98425f7e5222723 (patch)
treea69b5852e65dcd6fd71686439516d7c2123f4f6a /bpkg-util
parent2d73cab46b463fa61e1c6952008a14392b32374c (diff)
Reorder bpkg_util_pkg_find_archive() result fields so optional ones go last
Diffstat (limited to 'bpkg-util')
-rw-r--r--bpkg-util/package-archive.bash.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/bpkg-util/package-archive.bash.in b/bpkg-util/package-archive.bash.in
index 9400ade..899e3c4 100644
--- a/bpkg-util/package-archive.bash.in
+++ b/bpkg-util/package-archive.bash.in
@@ -132,7 +132,7 @@ function bpkg_util_pkg_find_archives_impl ()
# Search for a package archive in a directory using a file name pattern. If
# the archive is found, then print the package information in the
-# '<name>\n<version>\n<project>\n<path>' form, where the project field is
+# '<path>\n<name>\n<version>\n<project>' form, where the project field is
# empty if the project value is not specified in the manifest.
#
# Note that if there are multiple archives matching the pattern, then it is
@@ -163,7 +163,7 @@ function bpkg_util_pkg_find_archive_impl ()
local p
p=($(bpkg_util_pkg_verify_archive "$f"))
- printf "${p[0]}\n${p[1]}\n${p[2]}\n$f"
+ printf "$f\n${p[0]}\n${p[1]}\n${p[2]}"
return
fi
fi