Fix --install with latest flatpak by passing -y

These days flatpak install will always prompt for input,
so we pass -y to it because otherwise (due to non-inherited
stdin) we auto-answer no.

Fixes https://github.com/flatpak/flatpak-builder/issues/170
auto
Alexander Larsson 2018-06-25 11:47:10 +02:00 committed by Alexander Larsson
parent e93eb8defc
commit 247525a800
1 changed files with 1 additions and 2 deletions

View File

@ -277,8 +277,7 @@ do_install (BuilderContext *build_context,
else
g_ptr_array_add (args, g_strdup ("--system"));
if (opt_user)
g_ptr_array_add (args, g_strdup ("-y"));
g_ptr_array_add (args, g_strdup ("-y"));
g_ptr_array_add (args, g_strdup ("--reinstall"));