[Bug 802919] Re: Install menu is enabled while disconnected

Clint Byrum clint at fewbar.com
Thu Jul 14 16:38:32 UTC 2011


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
Foundations Bugs, which is subscribed to software-center in Ubuntu.
https://bugs.launchpad.net/bugs/802919

Title:
  Install menu is enabled while disconnected

Status in “software-center” package in Ubuntu:
  Fix Released
Status in “software-center” source package in Natty:
  Fix Committed

Bug description:
  TEST CASE:
  1. Disconnect the system from the network
  2. Select an application that is not installed on the system
  3. Select the menu 'File / Install'

  Result:
  S-C tries to install the application but fails

  ---
  Ubuntu Bug Squad volunteer triager
  http://wiki.ubuntu.com/BugSquad

  ProblemType: Bug
  DistroRelease: Ubuntu 11.10
  Package: software-center 4.1.6
  ProcVersionSignature: Ubuntu 3.0-2.3-generic 3.0.0-rc4
  Uname: Linux 3.0-2-generic i686
  Architecture: i386
  Date: Tue Jun 28 12:42:48 2011
  EcryptfsInUse: Yes
  PackageArchitecture: all
  ProcEnviron:
   LANGUAGE=en_US:en
   PATH=(custom, user)
   LANG=en_US.utf8
   LC_MESSAGES=en_US.utf8
   SHELL=/bin/bash
  SourcePackage: software-center
  UpgradeStatus: Upgraded to oneiric on 2011-06-27 (0 days ago)

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




More information about the foundations-bugs mailing list