summaryrefslogtreecommitdiff
path: root/community/deja-dup/not-check-ubuntuone-couch.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/deja-dup/not-check-ubuntuone-couch.patch')
-rw-r--r--community/deja-dup/not-check-ubuntuone-couch.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/community/deja-dup/not-check-ubuntuone-couch.patch b/community/deja-dup/not-check-ubuntuone-couch.patch
new file mode 100644
index 000000000..d7fb903a1
--- /dev/null
+++ b/community/deja-dup/not-check-ubuntuone-couch.patch
@@ -0,0 +1,45 @@
+diff -Naur deja-dup-24.0.orig/common/BackendU1.vala deja-dup-24.0/common/BackendU1.vala
+--- deja-dup-24.0.orig/common/BackendU1.vala 2012-08-07 00:20:51.000000000 +0200
++++ deja-dup-24.0/common/BackendU1.vala 2012-11-05 16:39:34.140104977 +0100
+@@ -75,11 +75,14 @@
+
+ class U1Checker : Checker
+ {
+- PythonChecker pyu1;
+ construct {
+ try {
+ var proxy = BackendU1.get_creds_proxy();
+- if (proxy.get_name_owner() == null) {
++ if (proxy.get_name_owner() != null) {
++ available = true;
++ complete = true;
++ }
++ else {
+ available = false;
+ complete = true;
+ }
+@@ -89,24 +92,6 @@
+ available = false;
+ complete = true;
+ }
+-
+- if (!complete) {
+- // A bit of abstraction leakage here; we have to keep these imports in
+- // line with what duplicity uses. Maybe we should add to duplicity a way
+- // to ask 'can I use this backend?'
+- pyu1 = PythonChecker.get_checker("ubuntuone.platform.credentials, ubuntuone.couch.auth");
+- if (pyu1.complete) {
+- available = pyu1.available;
+- complete = pyu1.complete;
+- }
+- else {
+- pyu1.notify["complete"].connect(() => {
+- available = pyu1.available;
+- complete = pyu1.complete;
+- pyu1 = null;
+- });
+- }
+- }
+ }
+ }
+