Skip to content

Commit

Permalink
Add 'none' Condition for Convenient Testing in Package Update Logic
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyCai7 committed Nov 16, 2024
1 parent c56d435 commit 2af29fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/main_common.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 2af29fd

Please sign in to comment.