Package: nautilus-dropbox / 2019.02.14-1

non-interactive-update.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Description: Ensure console variant of dropbox update is non-interactive
 This is because "dropbox update" is called from the postinst
 of the package and we don't want any interactivity there.
 .
 This is a Debian specific patch and probably should not be forwarded.
Author: Raphaƫl Hertzog <hertzog@debian.org>
Forwarded: not-needed
Origin: vendor

--- a/dropbox.in
+++ b/dropbox.in
@@ -560,10 +560,9 @@
             write(save)
             flush()
         console_print("%s %s\n" % (INFO, LINK))
-        GPG_WARNING_MSG = ("\n%s" % GPG_WARNING) if not gpg and not gpgme else ""
-
-        if not yes_no_question("%s%s" % (WARNING, GPG_WARNING_MSG)):
-            return
+        if not gpg and not gpgme:
+            if not yes_no_question("%s" % (GPG_WARNING)):
+                return
 
         download = DownloadState()