Title: [293889] trunk/Tools
Revision
293889
Author
[email protected]
Date
2022-05-06 08:02:38 -0700 (Fri, 06 May 2022)

Log Message

[Flatpak SDK] Include port / build type in shell prompt
https://bugs.webkit.org/show_bug.cgi?id=240166

Patch by Philippe Normand <[email protected]> on 2022-05-06
Reviewed by Adrian Perez de Castro.

This might help avoiding confusions like running debug tools in a release shell, or wpe
things in a gtk shell.

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

Canonical link: https://commits.webkit.org/250347@main

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (293888 => 293889)


--- trunk/Tools/ChangeLog	2022-05-06 14:50:06 UTC (rev 293888)
+++ trunk/Tools/ChangeLog	2022-05-06 15:02:38 UTC (rev 293889)
@@ -1,3 +1,16 @@
+2022-05-06  Philippe Normand  <[email protected]>
+
+        [Flatpak SDK] Include port / build type in shell prompt
+        https://bugs.webkit.org/show_bug.cgi?id=240166
+
+        Reviewed by Adrian Perez de Castro.
+
+        This might help avoiding confusions like running debug tools in a release shell, or wpe
+        things in a gtk shell.
+
+        * flatpak/flatpakutils.py:
+        (WebkitFlatpak.run_in_sandbox):
+
 2022-05-05  Jonathan Bedard  <[email protected]>
 
         [git-webkit] Automatically file bug

Modified: trunk/Tools/flatpak/flatpakutils.py (293888 => 293889)


--- trunk/Tools/flatpak/flatpakutils.py	2022-05-06 14:50:06 UTC (rev 293888)
+++ trunk/Tools/flatpak/flatpakutils.py	2022-05-06 15:02:38 UTC (rev 293889)
@@ -807,7 +807,7 @@
 
             if args[0] == "bash":
                 args.extend(['--noprofile', '--norc', '-i'])
-                sandbox_environment["PS1"] = "[📦🌐🐱 $FLATPAK_ID \\W]\\$ "
+                sandbox_environment["PS1"] = f"[📦🌐🐱 $FLATPAK_ID {self.platform}@{self.build_type} \\W]\\$ "
             if gather_output:
                 building = False
             else:
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to