summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2021-01-22 20:39:00 -0500
committerAndreas Grapentin <andreas@grapentin.org>2022-01-18 17:31:55 +0100
commit47d0b759fa957f9ff99eca14297ae3d7607dcaa5 (patch)
treebdb1c36c294b961fcd9f184fbd3e1ca597e41eac
parenta52ecbce395fdf3451b2df3f5c5cbd645888a637 (diff)
housekeeping
-rwxr-xr-xsrc/librefetch/librefetch7
1 files 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