[msitools] wxi-validate.pl: fix winspool.drv check



commit 1f7abe01bf8e7a0ce7033038e8ab86abd7f13ba2
Author: Marc-André Lureau <marcandre lureau redhat com>
Date:   Sun Mar 6 14:58:33 2022 +0400

    wxi-validate.pl: fix winspool.drv check
    
    Signed-off-by: Marc-André Lureau <marcandre lureau redhat com>

 data/wxi-validate.pl | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/data/wxi-validate.pl b/data/wxi-validate.pl
index 9cfc0df..2cd6657 100755
--- a/data/wxi-validate.pl
+++ b/data/wxi-validate.pl
@@ -82,11 +82,14 @@ my $dllbuiltin = "^(" .
     "usp10|" .
     "version|" .
     "winmm|" .
-    "winspool|" .
     "wldap32|" .
     "ws2_32|" .
     ").dll\$";
 
+my $drvbuiltin = "^(" .
+    "winspool|" .
+    ").drv\$";
+
 my @checkgroups;
 my $errors = 0;
 # Load all the requested wxi files, doing
@@ -320,6 +323,7 @@ sub check {
                 next unless $info =~ /DLL Name: (\S+)/;
                 my $dllname = lc $1;
                 next if $dllname =~ $dllbuiltin;
+                next if $dllname =~ $drvbuiltin;
 
                 unless (exists $dllcomponents{$dllname}) {
                     print " > $file\n" if ++$problems == 1;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]