From 8c3da8abdb16ecad007dc60068deb90e151737ea Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 21 Sep 2020 17:52:52 +0300 Subject: Fix submission handler issues arising due to package archive name ambiguity Now we take into account the fact that the foo-bar-1.0.tar.gz archive may contain either foo-bar/1.0 or foo/bar-1.0 package. --- brep/handler/handler.bash.in | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'brep/handler/handler.bash.in') diff --git a/brep/handler/handler.bash.in b/brep/handler/handler.bash.in index 1169b99..0aa3f69 100644 --- a/brep/handler/handler.bash.in +++ b/brep/handler/handler.bash.in @@ -12,6 +12,9 @@ fi @import libbutl/manifest-parser@ @import libbutl/manifest-serializer@ +bpkg_rep_bpkg=bpkg +@import bpkg-rep/package-archive@ + # Diagnostics. # # We expect the user to set the verbose variable either to true or empty @@ -148,3 +151,7 @@ function manifest_serialize () # # trace "$1: $2" printf "%s:%s\0" "$1" "$2" >&"$manifest_serializer_ifd" } + +function pkg_verify_archive () { bpkg_rep_pkg_verify_archive "$@"; } +function pkg_find_archives () { bpkg_rep_pkg_find_archives "$@"; } +function pkg_find_archive () { bpkg_rep_pkg_find_archive "$@"; } -- cgit v1.1