From 2af29fd83ab69bd985dfaa694ee20ed75ea0d339 Mon Sep 17 00:00:00 2001 From: Roy Cai Date: Fri, 15 Nov 2024 19:30:09 +0800 Subject: [PATCH] Add 'none' Condition for Convenient Testing in Package Update Logic Progress ticket:https://progress.opensuse.org/issues/169999 --- lib/main_common.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/main_common.pm b/lib/main_common.pm index 5a3e2c240171..268f8aae75a4 100644 --- a/lib/main_common.pm +++ b/lib/main_common.pm @@ -2387,10 +2387,11 @@ sub set_mu_virt_vars { $BUILD =~ /^:(\d+):([^:]+)$/im; die "BUILD value is $BUILD, but does not match required format." if (!$2); - my $_pkg = $2; my $_update_package = ''; - if ($_pkg =~ /qemu|xen|virt-manager|libguestfs|libslirp|open-vm-tools/) { + if ($_pkg =~ /none/) { + $_update_package = ''; + } elsif ($_pkg =~ /qemu|xen|virt-manager|libguestfs|libslirp|open-vm-tools/) { $_update_package = $_pkg; } elsif ($_pkg =~ /libvirt/) { $_update_package = 'libvirt-client';