d/postins: fix condition for removal of pvetest added during beta

Reported-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-06-21 11:08:13 +02:00
parent 89eebc0c90
commit f194715b9d

2
debian/postinst vendored
View File

@ -160,7 +160,7 @@ case "$1" in
# FIXME: remove after beta is over and add hunk to actively remove the repo
BETA_SOURCES="/etc/apt/sources.list.d/pvetest-for-beta.list"
if ! test -f "$BETA_SOURCES" dpkg --compare-versions "$2" 'lt' '8.0.1' && dpkg --compare-versions "$2" 'gt' '8.0~'; then
if ! test -f "$BETA_SOURCES" && dpkg --compare-versions "$2" 'lt' '8.0.1' && dpkg --compare-versions "$2" 'gt' '8.0~'; then
echo "Removing the during beta added pvetest repository file again"
rm -v "$BETA_SOURCES" || true
fi