Title: [291897] releases/WebKitGTK/webkit-2.36/Tools
Revision
291897
Author
[email protected]
Date
2022-03-25 15:52:22 -0700 (Fri, 25 Mar 2022)

Log Message

[WPE][GTK] Dist/distcheck targets fail due to Python error
https://bugs.webkit.org/show_bug.cgi?id=238394

Unreviewed build fix.

* Scripts/make-dist:
(Directory.list_files_in_version_control): Ensure that data read from pipes is converted to
strings by specifying text="ascii", as it seems safe to assume that files listed by Git will
not contain non-ASCII characters. While at it, make the function return a set to speed up
lookups.

Modified Paths

Diff

Modified: releases/WebKitGTK/webkit-2.36/Tools/ChangeLog (291896 => 291897)


--- releases/WebKitGTK/webkit-2.36/Tools/ChangeLog	2022-03-25 22:25:12 UTC (rev 291896)
+++ releases/WebKitGTK/webkit-2.36/Tools/ChangeLog	2022-03-25 22:52:22 UTC (rev 291897)
@@ -1,3 +1,16 @@
+2022-03-25  Adrian Perez de Castro  <[email protected]>
+
+        [WPE][GTK] Dist/distcheck targets fail due to Python error
+        https://bugs.webkit.org/show_bug.cgi?id=238394
+
+        Unreviewed build fix.
+
+        * Scripts/make-dist:
+        (Directory.list_files_in_version_control): Ensure that data read from pipes is converted to
+        strings by specifying text="ascii", as it seems safe to assume that files listed by Git will
+        not contain non-ASCII characters. While at it, make the function return a set to speed up
+        lookups.
+
 2022-03-08  Carlos Garcia Campos  <[email protected]>
 
         [GTK][WPE] Do not add new modules under ThirdParty to the tarball

Modified: releases/WebKitGTK/webkit-2.36/Tools/Scripts/make-dist (291896 => 291897)


--- releases/WebKitGTK/webkit-2.36/Tools/Scripts/make-dist	2022-03-25 22:25:12 UTC (rev 291896)
+++ releases/WebKitGTK/webkit-2.36/Tools/Scripts/make-dist	2022-03-25 22:52:22 UTC (rev 291897)
@@ -105,11 +105,11 @@
 
     def list_files_in_version_control(self):
         # FIXME: Only git is supported for now.
-        p = subprocess.Popen(['git', 'ls-tree', '-r', '--name-only', 'HEAD', self.source_root], stdout=subprocess.PIPE)
+        p = subprocess.Popen(['git', 'ls-tree', '-r', '--name-only', 'HEAD', self.source_root], stdout=subprocess.PIPE, text="ascii")
         out = p.communicate()[0]
         if not out:
             return []
-        return out.rstrip('\n').split('\n')
+        return frozenset(out.splitlines())
 
     def should_skip_file(self, path):
         return path not in self.files_in_version_control
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to