~kelemeng/software-center/bug640969

« back to all changes in this revision

Viewing changes to softwarecenter/distro/__init__.py

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt, Gary Lasker, Michael Vogt, Kiwinote, Mohamed Amine IL Idrissi
  • Date: 2010-09-09 09:11:23 UTC
  • Revision ID: james.westby@ubuntu.com-20100909091123-domo868235pb7vuk
Tags: 2.1.17
[ Gary Lasker ]
* softwarecenter/view/purchasedialog.py:
  - make popup window a modal dialog so it works with
    metacity too (LP: #625398)
* softwarecenter/view/softwarepane.py,
  softwarecenter/view/availablepane.py,
  softwarecenter/view/channelpane.py
  softwarecenter/view/installedpane.py,
  test/test_appview.py:
  - factor show/hide nonapps functionality up to the
    SoftwarePane base class, cleanup redundant code
  - enable show/hide nonapps in the "Provided by Ubuntu"
    subitem of "Installed Software" per updated spec
    (LP: #556375) 
  - add test for show/hide nonapps
* softwarecenter/backend/channel.py:
  - small fix in debug code

[ Michael Vogt ]
* merged lp:~mpt/software-center/basic-css, improves the
  style of the purchase dialog (thanks!)
* merged lp:~mmcg069/software-center/small-fixes that fixes
  minor drawing error with the paging dot drawing outside its 
  allocated area (thanks!)
* merged lp:~mpt/software-center/help-3.0 (thanks!)
* softwarecenter/gwibber_helper.py:
  - to find out if gwibber has accounts setup, poke around in
    gconf instead of doing a dbus call. The dbus call will trigger
    a gwibber start on each s-c start

[ Kiwinote ]
* softwarecenter/view/appdetailsview_gtk.py:
  - set action_bar.pkg_state as well as local state 
    (LP: #629230, LP: #632889)
    this means that the button will always take the right action
    (testcase: click 'install', cancel auth, click 'install', auth)
  - don't show warning in pkgstatusbar while transaction is in progress,
    instead show 'installing..', 'updating..', etc
    (test case: install any deb file and watch the pkgstatusbar)
* softwarecenter/view/catview.py:
  - sort categories alphabetically (LP: #633238)
* softwarecenter/view/catview_gtk.py:
  - skip the carousel transition if we are hovering above a poster, or if
    the poster is selected (ie hold down mouse, but don't release)

[ Mohamed Amine IL Idrissi ]
* Fix bug that allowed silent removal of conflicting packages
  (LP: #554319)
* Fix missing icons in the remove alerts

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
        import xapian
84
84
        return xapian.Query()
85
85
 
 
86
    def get_install_warning_text(self, cache, pkg, appname, depends):
 
87
        primary = _("To install %s, these items must be removed:" % appname)
 
88
        button_text = _("Install Anyway")
 
89
 
 
90
        # alter it if a meta-package is affected
 
91
        for m in depends:
 
92
            if cache[m].section == "metapackages":
 
93
                primary = _("If you install %s, future updates will not "
 
94
                              "include new items in <b>%s</b> set. "
 
95
                              "Are you sure you want to continue?") % (appname, cache[m].installed.summary)
 
96
                button_text = _("Install Anyway")
 
97
                depends = []
 
98
                break
 
99
 
 
100
        # alter it if an important meta-package is affected
 
101
        for m in self.IMPORTANT_METAPACKAGES:
 
102
            if m in depends:
 
103
                primary = _("Installing %s may cause core applications to "
 
104
                            "be removed. "
 
105
                            "Are you sure you want to continue?" % appname)
 
106
                button_text = _("Install Anyway")
 
107
                depends = None
 
108
                break
 
109
        return (primary, button_text)
 
110
 
86
111
def _get_distro():
87
112
    distro_id = subprocess.Popen(["lsb_release","-i","-s"], 
88
113
                                 stdout=subprocess.PIPE).communicate()[0].strip()