]> git.proxmox.com Git - pve-manager.git/commitdiff
d/postins: fix condition for removal of pvetest added during beta
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 21 Jun 2023 09:08:13 +0000 (11:08 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 21 Jun 2023 09:08:21 +0000 (11:08 +0200)
Reported-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
debian/postinst

index 7bfe7e7fbdde98166a1aba1b8338ca91292989c9..81eaaa2120411fbd1bb768a1450f9c56c461bfc2 100755 (executable)
@@ -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