[Webkit-unassigned] [Bug 187240] New: update-webkitgtk-flatpak fails if running with python2

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jul 1 21:11:03 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=187240

            Bug ID: 187240
           Summary: update-webkitgtk-flatpak fails if running with python2
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Gtk
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: Hironori.Fujii at sony.com
                CC: bugs-noreply at webkitgtk.org

update-webkitgtk-flatpak fails if running with python2

> $ ./Tools/Scripts/update-webkitgtk-flatpak
> Can't load file /tmp/tmpSabstY: Key file contains line “<HTML><HEAD>” which is not a key-value pair, group, or comment
> Traceback (most recent call last):
>   File "./Tools/Scripts/update-webkitgtk-flatpak", line 28, in <module>
>     WebkitFlatpak.load_from_args(["--gtk", "--update"] + sys.argv[1:]).run()
>   File "./Tools/flatpak/flatpakutils.py", line 693, in run
>     if not self.clean_args():
>   File "./Tools/flatpak/flatpakutils.py", line 586, in clean_args
>     repo_file="https://dl.flathub.org/repo/flathub.flatpakrepo"))
>   File "./Tools/flatpak/flatpakutils.py", line 342, in add
>     comment="Adding repo %s" % repo.name)
>   File "./Tools/flatpak/flatpakutils.py", line 235, in flatpak
>     return subprocess.check_output(command).decode("utf-8")
>   File "/usr/lib/python2.7/subprocess.py", line 223, in check_output
>     raise CalledProcessError(retcode, cmd, output=output)
> subprocess.CalledProcessError: Command '['flatpak', 'remote-add', '--user', 'flathub', '--from', '/tmp/tmpSabstY', '--if-not-exists']' returned non-zero exit status 1

Request Error happens to retrieve
"https://dl.flathub.org/repo/flathub.flatpakrepo".
I attached the content of /tmp/tmpSabstY.

Python3 can retrieve the content.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180702/8306e8ac/attachment-0001.html>


More information about the webkit-unassigned mailing list