From f0e0c75d9615d3f9af91af20796820204bc5c127 Mon Sep 17 00:00:00 2001 From: bill-auger Date: Fri, 22 Jan 2021 20:39:00 -0500 Subject: housekeeping --- src/librefetch/librefetch | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/librefetch/librefetch b/src/librefetch/librefetch index 67f4491..53034ef 100755 --- a/src/librefetch/librefetch +++ b/src/librefetch/librefetch @@ -212,12 +212,15 @@ doit() { if [[ $mode =~ create ]]; then local base_dst=${dst%.part} local suffix=${dst#"$base_dst"} + local srcball_not_found_msg="Libre source-ball not found. Attempting to create it from upstream sources." if [[ $base_dst == *.sig ]]; then + # recurse to create the libre source-ball, if it does not yet exist + # the libre source-ball signature is deferred to librerelease if ! [[ -e ${base_dst%.sig} ]]; then extra_opts=("${src%.sig}" "${base_dst%.sig}") - msg2 "Libre source-ball signature not found. Attempting to create it." + msg2 "${srcball_not_found_msg}" doit || exit fi create_signature "${base_dst%.sig}" || exit @@ -229,7 +232,7 @@ doit() { export pkg_file=$dst cd "$BUILDFILEDIR" - msg2 "Libre source-ball not found. Attempting to create it from upstream source." + msg2 "${srcball_not_found_msg}" "$makepkg" "${makepkg_opts[@]}" -p "$srcbuild" >&2 || exit fi fi -- cgit v1.2.2