Gary thanks for the response. In looking deeper into how this is
determined, its really up to NetworkManager whether we think there is a
network. The specific code actually errs on the side of false positive,
as if network manager is confused and says "Unknown", softwarecenter
assumes a connection (which handles the static network setup as well).

# simply query even more
def network_state_is_connected():
    """ get bool if we are connected """
    # unkown because in doubt, just assume we have network
    return get_network_state() in (NetState.NM_STATE_UNKNOWN,
                                   NetState.NM_STATE_CONNECTED)


Given the explanation, I think this is suitable for SRU and the regression 
potential remains low.

** Changed in: software-center (Ubuntu Natty)
       Status: Incomplete => Fix Committed

** Tags added: verification-needed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/802919

Title:
  Install menu is enabled while disconnected

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/802919/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to