]> xenbits.xensource.com Git - osstest.git/commitdiff
runvar access: Use runvar_glob for dmrestrict runvar search
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 20 Aug 2020 16:39:58 +0000 (17:39 +0100)
committerIan Jackson <iwj@xenproject.org>
Wed, 7 Oct 2020 16:48:33 +0000 (17:48 +0100)
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Osstest/Debian.pm

index 3fa26e45874136bd9587361d680774080bd4a6ee..ae3c1d3340ad649ee5466c80298303081f0f68de 100644 (file)
@@ -1032,7 +1032,7 @@ END
     # security.d.o CDN seems unreliable right now
     # and jessie-updates is no more
 
-    if (grep { m/_dmrestrict$/ && $r{$_} } keys %r and
+    if (grep { $r{$_} } runvar_glob('*_dmrestrict') and
        $suite =~ m/stretch/) {
        preseed_backports_packages($ho, $sfx, \%xopts, $suite,
                                   qw(chiark-scripts));