From 314030f154d16519940fd6046f1333ed75293a57 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Mon, 9 Sep 2024 16:53:53 +0200 Subject: [PATCH] drop signing scripts that were used with koji --- sign_extras | 5 ----- sign_rpms | 21 --------------------- 2 files changed, 26 deletions(-) delete mode 100755 sign_extras delete mode 100755 sign_rpms diff --git a/sign_extras b/sign_extras deleted file mode 100755 index 93b00df..0000000 --- a/sign_extras +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -e - -. settings - -./sign_rpms "$EXTRASDIR"/*.rpm diff --git a/sign_rpms b/sign_rpms deleted file mode 100755 index 31053bc..0000000 --- a/sign_rpms +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -e - -. settings - -gpg_pass=$(mktemp) -trap 'shred --remove "${gpg_pass}"' EXIT -chmod 0700 "$gpg_pass" -show_gpg_password > "$gpg_pass" - -SIGN_FLAGS=(--define "_gpg_sign_cmd_extra_args --pinentry-mode loopback --passphrase-file ${gpg_pass}" --define "_gpg_path $KEYDIR" --define="_gpg_name $SIGNER") - -rpmdev-vercmp $(rpm --query --queryformat='%{EVR}' rpm) 4.16.0 || RESULT=$? -if [[ $RESULT == "11" ]]; then - SIGN_FLAGS+=("--rpmv3") -fi - -if [[ -n $1 ]] ; then - echo "$@" | xargs $XARGS_JOBS rpmsign --addsign "${SIGN_FLAGS[@]}" -else - find "$RPMDIR" -name '*.rpm' | xargs $XARGS_JOBS rpmsign --addsign "${SIGN_FLAGS[@]}" -fi