From 8693bd8f4a6da18ba7af0c27c58f0a7c8badbe25 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Wed, 10 Apr 2019 11:21:32 -0400 Subject: feed_sign(): New function --- (limited to 'src') diff --git a/src/index.sh b/src/index.sh index ebb348e..addbbda 100644 --- a/src/index.sh +++ b/src/index.sh @@ -20,6 +20,25 @@ # along with the ProteanOS Archive Manager. If not, see # . +feed_sign() +{ + local feed_idx="${1}" + shift 1 + local usign= + + if [ x"${conf_key}" = x'' ]; then + return + fi + + if ${in_place} && ${USIGN_EMBEDDED}; then + usign="${builddir}/3rdparty/usign/usign" + else + usign="${USIGN}" + fi + + "${usign}" -S -m "${feed_idx}" -s "${conf_key}" +} + feed_add_package() { local chan="${1}" -- cgit v0.9.1