Sign individual packages

This commit is contained in:
mollusk 2021-01-21 16:37:44 -05:00
parent 2f5035a935
commit 00da5457d0

View File

@ -125,11 +125,15 @@ sign_pkgs(){
echo "Generating a new key..."
gen_key
echo "Signing xbps repodata in ${REPO_PATH}"
xbps-rindex --sign --signedby "${USER}" --privkey "${KEY_PATH}" "${REPO_PATH}"
echo "Signing xbps files in ${REPO_PATH}"
xbps-rindex --sign --signedby "${USER}" --privkey "${KEY_PATH}" "$REPO_PATH"
xbps-rindex -S --signedby "${USER}" --privkey "${KEY_PATH}" "${REPO_PATH}"/*.xbps
else
echo "Signing xbps files in ${REPO_PATH}"
xbps-rindex --sign --signedby "${USER}" --privkey "${KEY_PATH}" "$REPO_PATH"
xbps-rindex --sign --signedby "${USER}" --privkey "${KEY_PATH}" "${REPO_PATH}"
echo "Signing xbps files in ${REPO_PATH}"
xbps-rindex -S --signedby "${USER}" --privkey "${KEY_PATH}" "${REPO_PATH}"/*.xbps
fi
}
@ -137,6 +141,7 @@ add_pkg(){
load_conf
create_repo
cp -r "${void_packages}"/*.xbps "${REPO_PATH}" || exit 1
cp -r "${void_packages}"/nonfree/*.xbps "${REPO_PATH}" || exit 1
xbps-rindex -a "${REPO_PATH}"/*.xbps
}