Commit Graph

4 Commits

Author SHA1 Message Date
Manuel Rego Casasnovas
6ae117c250 flatpak-bisect: Use raw string for regular expression
This is showing a SyntaxWarning when using flatpak-bisect
with Python 3.12. Using a raw string fixes it.

See second change listed in:
https://docs.python.org/3/whatsnew/3.12.html#other-language-changes

Closes: #6508
2026-02-25 23:39:15 +05:30
Matthew Leeds
f9a4b44c64 flatpak-bisect: Remove unused variable
This fixes a warning pointed out by lgtm.com. I checked that the following
still works:
$ PAGER=more flatpak-bisect -b stable org.gnome.Builder log

Closes: #2894
Approved by: matthiasclasen
2019-05-16 23:56:24 +00:00
Alexandru Băluț
ad4aada754 scripts: Fix flatpak-bisect log
The script was using stdout=subprocess.STDOUT but the Popen
documentation does not mention this as a valid value.

An exception was being thrown when running flatpak-bisect <name> log:
OSError: [Errno 9] Bad file descriptor
2017-05-02 15:01:19 +02:00
Thibault Saunier
75388609b3 scripts: Add a script to allow bisecting failures
The CLI is pretty similare to the `git bisect` one and works as follow:

  $ flatpak-bisect org.app.App start # Update application and get the history
  $ flatpak-bisect org.app.App bad # Sets current commit as first bad commit
  $ flatpak-bisect org.app.App checkout GoodHash # Checkout the first known good commit
  $ flatpak-bisect org.app.App good # Sets GoodHash as first good commit

... Here it starts bisection and checkouts a commit on the way, the user should launch the
app to check if the commit is good or bad and run:

  $ flatpak-bisect org.app.App good # if commit is good
  $ flatpak-bisect org.app.App bad # if commit is bad

flatpak-bisect will tell when the first bad commit is found.

Fixes https://github.com/flatpak/flatpak/issues/530
2017-02-23 17:41:06 +01:00