summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2021-01-22 20:39:00 -0500
committerbill-auger <mr.j.spam.me@gmail.com>2021-01-23 01:06:12 -0500
commitf0e0c75d9615d3f9af91af20796820204bc5c127 (patch)
treefd7f865adce237af533b94b9fe2a8888721f8d55
parent36aea0c6de9769b427f4082d3112a891a24a5b8c (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