bzr: Run brz in preference to bzr

Bazaar-NG (bzr) relies on Python 2, which has reached end-of-life, and
appears to be essentially unmaintained itself. Try using Breezy (brz),
a "friendly fork" of bzr that has been ported to Python 3 and is
maintained.

Signed-off-by: Simon McVittie <smcv@debian.org>
master^2
Simon McVittie 2020-03-20 13:18:50 +00:00 committed by Simon McVittie
parent 66d2a68337
commit 48761e778a
1 changed files with 4 additions and 1 deletions

View File

@ -120,11 +120,14 @@ bzr (GFile *dir,
GError **error,
...)
{
g_autofree char *brz = NULL;
gboolean res;
va_list ap;
brz = g_find_program_in_path ("brz");
va_start (ap, error);
res = flatpak_spawn (dir, output, 0, error, "bzr", ap);
res = flatpak_spawn (dir, output, 0, error, brz ? brz : "bzr", ap);
va_end (ap);
return res;