⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 268827 in webkit


Ignore:
Timestamp:
Oct 21, 2020, 2:37:25 PM (6 years ago)
Author:
clopez@igalia.com
Message:

update-webkitgtk-libs and run-webkit-tests fail silently if flatpak has problems updating
https://bugs.webkit.org/show_bug.cgi?id=218047

Reviewed by Philippe Normand.

This scripts were returning zero status when flatpak failed to
update in some cases. Fix them to return a non-zero status.

  • Scripts/update-webkit-flatpak: Add missing sys.exit call with the return code.
  • flatpak/flatpakutils.py:

(WebkitFlatpak.run_in_sandbox): In python false is zero when casted to int.

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r268811 r268827  
     12020-10-21  Carlos Alberto Lopez Perez  <clopez@igalia.com>
     2
     3        update-webkitgtk-libs and run-webkit-tests fail silently if flatpak has problems updating
     4        https://bugs.webkit.org/show_bug.cgi?id=218047
     5
     6        Reviewed by Philippe Normand.
     7
     8        This scripts were returning zero status when flatpak failed to
     9        update in some cases. Fix them to return a non-zero status.
     10
     11        * Scripts/update-webkit-flatpak: Add missing sys.exit call with the return code.
     12        * flatpak/flatpakutils.py:
     13        (WebkitFlatpak.run_in_sandbox): In python false is zero when casted to int.
     14
    1152020-10-21  Lauro Moura  <lmoura@igalia.com>
    216
  • trunk/Tools/Scripts/update-webkit-flatpak

    r258626 r268827  
    2626
    2727if __name__ == "__main__":
    28     WebkitFlatpak.load_from_args(["--update"] + sys.argv[1:]).run()
     28    sys.exit(WebkitFlatpak.load_from_args(["--update"] + sys.argv[1:]).run())
  • trunk/Tools/flatpak/flatpakutils.py

    r268761 r268827  
    660660    def run_in_sandbox(self, *args, **kwargs):
    661661        if not self.setup_builddir():
    662             return False
     662            return 1
    663663        cwd = kwargs.get("cwd", None)
    664664        extra_env_vars = kwargs.get("env", {})
Note: See TracChangeset for help on using the changeset viewer.