- # strip / suffix as gpg will double-slash in that case (#665411)
-@@ -301,11 +298,11 @@
- # if a --keyring was given, just use this one
- if [ -n "$FORCED_KEYRING" ]; then
- if [ -s "$FORCED_KEYRING" ]; then
-- cp --dereference "$FORCED_KEYRING" "$PUBRING"
-+ cp "$FORCED_KEYRING" "$PUBRING"
- fi
- else
- # otherwise all known keyrings are merged
-- local TRUSTEDPARTS="/etc/apt/trusted.gpg.d"
-+ local TRUSTEDPARTS="@TERMUX_PREFIX@/etc/apt/trusted.gpg.d"
- eval $(apt-config shell TRUSTEDPARTS Dir::Etc::TrustedParts/d)
- if [ -d "$TRUSTEDPARTS" ]; then
- # ignore errors mostly for non-existing $TRUSTEDFILE
-@@ -316,7 +313,7 @@
- done
- } > "$PUBRING" 2>/dev/null
- elif [ -s "$TRUSTEDFILE" ]; then
-- cp --dereference "$TRUSTEDFILE" "$PUBRING"
-+ cp "$TRUSTEDFILE" "$PUBRING"
- fi
- fi
-
-@@ -460,7 +457,7 @@