[tools 1/4] testbot/build: Don't duplicate the addon.c filename.

Francois Gouget fgouget at codeweavers.com
Thu Apr 23 08:04:02 CDT 2020


Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 testbot/lib/Build/Utils.pm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/testbot/lib/Build/Utils.pm b/testbot/lib/Build/Utils.pm
index 8c263275e5..7d0739e5bd 100644
--- a/testbot/lib/Build/Utils.pm
+++ b/testbot/lib/Build/Utils.pm
@@ -416,7 +416,8 @@ sub _UpdateAddOn($$$)
 sub UpdateAddOns()
 {
   my %AddOns;
-  if (open(my $fh, "<", "$DataDir/wine/dlls/appwiz.cpl/addons.c"))
+  my $AddonSrc = "wine/dlls/appwiz.cpl/addons.c";
+  if (open(my $fh, "<", "$DataDir/$AddonSrc"))
   {
     my $Arch = "";
     while (my $Line= <$fh>)
@@ -448,7 +449,7 @@ sub UpdateAddOns()
   }
   else
   {
-    LogMsg "Could not open 'wine/dlls/appwiz.cpl/addons.c': $!\n";
+    LogMsg "Could not open '$AddonSrc': $!\n";
     return 0;
   }
 
-- 
2.20.1




More information about the wine-devel mailing list