From ca71525e575f809c77d84550a3e8abc100dfb5a4 Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Wed, 11 May 2022 13:25:55 +0200
Subject: Allow package names to not be explicitly defined as configuration
values
---
lib/util/pkg.bash | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
(limited to 'lib')
diff --git a/lib/util/pkg.bash b/lib/util/pkg.bash
index 618ce6a..de70f78 100644
--- a/lib/util/pkg.bash
+++ b/lib/util/pkg.bash
@@ -6,12 +6,12 @@ pkg() {
local action=$1 ; shift
local pkg
- pkg="$(config "pkg.$1")" ; shift
+ pkg="$(config "pkg.$1")"
if [[ -z $pkg ]]
then
- crit "$system" "No package name for $pkg"
- return 1
+ warn "$system" "No explicit package name for $1"
+ pkg="$1"
fi
if [[ "$(type -t "pkg_$action")" != "function" ]]
--
cgit v1.1