diff options
Diffstat (limited to 'brep/handler/handler.bash.in')
-rw-r--r-- | brep/handler/handler.bash.in | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/brep/handler/handler.bash.in b/brep/handler/handler.bash.in index 2e66afc..d9e7eaa 100644 --- a/brep/handler/handler.bash.in +++ b/brep/handler/handler.bash.in @@ -1,5 +1,4 @@ # file : brep/handler/handler.bash.in -# copyright : Copyright (c) 2014-2019 Code Synthesis Ltd # license : MIT; see accompanying LICENSE file # Utility functions useful for implementing request handlers. @@ -10,8 +9,11 @@ else brep_handler=true fi -@import libbutl/manifest-parser@ -@import libbutl/manifest-serializer@ +@import libbutl.bash/manifest-parser@ +@import libbutl.bash/manifest-serializer@ + +bpkg_util_bpkg=bpkg +@import bpkg-util/package-archive@ # Diagnostics. # @@ -52,7 +54,7 @@ function info () # <severity> <text> ts= fi - echo "[$ts] [brep:$severity] [ref $info_ref] [$info_self]: $*" 1>&2; + echo "[$ts] [brep:$severity] [ref $info_ref] [$info_self]: $*" 1>&2 } function error () { info "error" "$*"; exit 1; } @@ -149,3 +151,7 @@ function manifest_serialize () # <name> <value> # trace "$1: $2" printf "%s:%s\0" "$1" "$2" >&"$manifest_serializer_ifd" } + +function pkg_verify_archive () { bpkg_util_pkg_verify_archive "$@"; } +function pkg_find_archives () { bpkg_util_pkg_find_archives "$@"; } +function pkg_find_archive () { bpkg_util_pkg_find_archive "$@"; } |