summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-10 11:21:32 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-10 11:21:32 (EDT)
commit8693bd8f4a6da18ba7af0c27c58f0a7c8badbe25 (patch)
tree4eed5ce2a05e097912b25f6107ff63fd271fed31
parent03b17c5ebcb6368bb41e09474cb65e191156ff8b (diff)
feed_sign(): New function
-rw-r--r--src/index.sh19
1 files changed, 19 insertions, 0 deletions
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
# <http://www.gnu.org/licenses/>.
+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}"