Merge lp:~mikemc/ubuntuone-client/fix-1018125-darwin-no-gireactor into lp:ubuntuone-client

Proposed by Mike McCracken
Status: Merged
Approved by: dobey
Approved revision: 1273
Merged at revision: 1272
Proposed branch: lp:~mikemc/ubuntuone-client/fix-1018125-darwin-no-gireactor
Merge into: lp:ubuntuone-client
Diff against target: 25 lines (+2/-2)
2 files modified
bin/u1sdtool (+1/-1)
bin/ubuntuone-syncdaemon (+1/-1)
To merge this branch: bzr merge lp:~mikemc/ubuntuone-client/fix-1018125-darwin-no-gireactor
Reviewer Review Type Date Requested Status
dobey (community) Approve
Diego Sarmentero (community) Approve
Review via email: mp+112702@code.launchpad.net

Commit message

- Avoid importing gireactor and dbus on darwin as well as on win32. (LP: #1018125)

Description of the change

- Avoid importing gireactor and dbus on darwin as well as on win32. (LP: #1018125)

To post a comment you must log in.
1272. By Mike McCracken

Make switch test for linux instead of against win and darwin.

Revision history for this message
Diego Sarmentero (diegosarmentero) wrote :

+1

review: Approve
Revision history for this message
dobey (dobey) wrote :

Any reason to not do "not in ['win32', 'darwin'] here instead? This change does break it for anyone who might be currently using it on FreeBSD or some other *nix for example, while doing the "not in []" would limit the number of potential platforms we have to test for in a better way I think.

review: Needs Information
Revision history for this message
Mike McCracken (mikemc) wrote :

> Any reason to not do "not in ['win32', 'darwin'] here instead? This change
> does break it for anyone who might be currently using it on FreeBSD or some
> other *nix for example, while doing the "not in []" would limit the number of
> potential platforms we have to test for in a better way I think.

Hmm, good point. I originally had it that way, but diego suggested that the == 'linux2' would be clearer, and I agreed.
I don't think either of us was thinking about a fourth linux-y platform.

1273. By Mike McCracken

Revert prev commit, test platform against win and darwin to be robust for other linuxes

Revision history for this message
dobey (dobey) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/u1sdtool'
2--- bin/u1sdtool 2012-06-27 20:13:43 +0000
3+++ bin/u1sdtool 2012-07-02 15:41:18 +0000
4@@ -30,7 +30,7 @@
5
6 import sys
7
8-if sys.platform != 'win32':
9+if sys.platform not in ('win32', 'darwin'):
10 try:
11 from twisted.internet import gireactor
12 gireactor.install()
13
14=== modified file 'bin/ubuntuone-syncdaemon'
15--- bin/ubuntuone-syncdaemon 2012-06-21 18:58:50 +0000
16+++ bin/ubuntuone-syncdaemon 2012-07-02 15:41:18 +0000
17@@ -30,7 +30,7 @@
18
19 import sys
20
21-if sys.platform != 'win32':
22+if sys.platform not in ('win32', 'darwin'):
23 try:
24 from twisted.internet import gireactor
25 gireactor.install()

Subscribers

People subscribed via source and target branches