Merge pull request #333 from smcv/brz

bzr: Run brz in preference to bzr
master
Matthew Leeds 2020-03-20 16:48:50 -07:00 committed by GitHub
commit 5246220826
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;