Unreviewed. Fixing a call in flatpakutils.py to PortFactory.get(),
authorzandobersek@gmail.com <zandobersek@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Jul 2018 05:48:27 +0000 (05:48 +0000)
committerzandobersek@gmail.com <zandobersek@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Jul 2018 05:48:27 +0000 (05:48 +0000)
enforcing the passed platform argument to always be lowercase, as is
expected from the PortFactory code.

* flatpak/flatpakutils.py:
(WebkitFlatpak.clean_args):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@233511 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/flatpak/flatpakutils.py

index 93bc9c3..ab40286 100644 (file)
@@ -1,3 +1,12 @@
+2018-07-04  Zan Dobersek  <zdobersek@igalia.com>
+
+        Unreviewed. Fixing a call in flatpakutils.py to PortFactory.get(),
+        enforcing the passed platform argument to always be lowercase, as is
+        expected from the PortFactory code.
+
+        * flatpak/flatpakutils.py:
+        (WebkitFlatpak.clean_args):
+
 2018-07-04  Tim Horton  <timothy_horton@apple.com>
 
         Introduce PLATFORM(IOSMAC)
index 48d2561..19e3237 100644 (file)
@@ -556,14 +556,14 @@ class WebkitFlatpak:
         self.makeargs = ""
 
     def clean_args(self):
+        self.platform = self.platform.upper()
+
         if not self.debug and not self.release:
             factory = PortFactory(SystemHost())
-            port = factory.get(self.platform)
+            port = factory.get(self.platform.lower())
             self.debug = port.default_configuration() == "Debug"
         self.build_type = "Debug" if self.debug else "Release"
 
-        self.platform = self.platform.upper()
-
         if self.gdb is None and '--gdb' in sys.argv:
             self.gdb = ""