summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2020-06-30 12:46:06 +0200
committerAlexander Larsson <alexander.larsson@gmail.com>2020-06-30 16:13:51 +0200
commit012f6de1f87b0674efb77ac8f764b3fa8fd7f7f8 (patch)
tree0ec781c5ce68dcede026c39f42880284b0527ec2
parent4f139467c26155185845cc2b9abcfe3baa130366 (diff)
downloadflatpak-012f6de1f87b0674efb77ac8f764b3fa8fd7f7f8.tar.gz
transaction: No need to authenticate when an op just is a redeploy
-rw-r--r--common/flatpak-transaction.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/flatpak-transaction.c b/common/flatpak-transaction.c
index f6660362..db9317e7 100644
--- a/common/flatpak-transaction.c
+++ b/common/flatpak-transaction.c
@@ -2715,6 +2715,7 @@ op_may_need_token (FlatpakTransactionOperation *op)
{
return
!op->skip &&
+ !op->update_only_deploy &&
(op->kind == FLATPAK_TRANSACTION_OPERATION_INSTALL ||
op->kind == FLATPAK_TRANSACTION_OPERATION_UPDATE ||
op->kind == FLATPAK_TRANSACTION_OPERATION_INSTALL_OR_UPDATE);