[deja-dup] Update for NM 0.9

Daniel Williams dcbw at fedoraproject.org
Wed Apr 6 21:28:11 UTC 2011


commit ccaf782c05fe685c55a0692783bd976636d553f9
Author: Dan Williams <dcbw at redhat.com>
Date:   Wed Apr 6 16:29:30 2011 -0500

    Update for NM 0.9

 nm09.patch |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)
---
diff --git a/nm09.patch b/nm09.patch
new file mode 100644
index 0000000..7482437
--- /dev/null
+++ b/nm09.patch
@@ -0,0 +1,27 @@
+diff -up deja-dup-17.92/common/Network.vala.foo deja-dup-17.92/common/Network.vala
+--- deja-dup-17.92/common/Network.vala.foo	2011-04-06 16:13:01.731890996 -0500
++++ deja-dup-17.92/common/Network.vala	2011-04-06 16:16:48.560055254 -0500
+@@ -76,7 +76,10 @@ abstract class StatusProvider : Object
+ 
+ class StatusNetworkManager : StatusProvider
+ {
+-  static const uint32 NM_STATE_CONNECTED = 3;
++  static const uint32 NM_OLD_STATE_CONNECTED = 3;
++  static const uint32 NM_STATE_CONNECTED_LOCAL = 50;
++  static const uint32 NM_STATE_CONNECTED_SITE = 60;
++  static const uint32 NM_STATE_CONNECTED_GLOBAL = 70;
+ 
+   protected override DBusProxy create_proxy() throws Error
+   {
+@@ -94,7 +97,10 @@ class StatusNetworkManager : StatusProvi
+       return Status.UNKNOWN;
+ 
+     uint32 state = state_val.get_uint32();
+-    if (state == NM_STATE_CONNECTED)
++    if (state == NM_OLD_STATE_CONNECTED ||
++        state == NM_STATE_CONNECTED_LOCAL ||
++        state == NM_STATE_CONNECTED_SITE ||
++        state == NM_STATE_CONNECTED_GLOBAL)
+       return Status.ONLINE;
+     else
+       return Status.OFFLINE;


More information about the scm-commits mailing list