~ubuntu-branches/ubuntu/raring/software-center/raring-proposed

« back to all changes in this revision

Viewing changes to softwarecenter/distro/__init__.py

  • Committer: Package Import Robot
  • Author(s): Michael Vogt
  • Date: 2012-12-06 17:30:50 UTC
  • Revision ID: package-import@ubuntu.com-20121206173050-n7mxi5fzlsvtdh9l
Tags: 5.5.2
* lp:~mvo/software-center/fix-pygobject-deprecation-warnings:
  - fix deprecation warninings with the latest python-gi
* lp:~mvo/software-center/minor-logging-fixes:
  - drop some LOG.info() messages to LOG.debug() to spam the user
    less
* lp:~mvo/software-center/trivial-close-ui-tweak:
  - hide the main window immediately when closing down
* lp:~mvo/software-center/5.4-fix-save-person-to-config:
  - This branch ensures that the "username" is saved everytime
    that the ubuntu sso whoami call is done
* lp:~mvo/software-center/use-dpkg-builddeps:
  - use dpkg-checkbuilddeps to find test-dependencies
* lp:~mvo/software-center/update-sc-cmdline-flexibility:
  - update-software-center-agent: 
    + add --target-db-path commandline
  - update-software-center: 
    + add --app-install-desktop-dir and --target-db-path commandline
* lp:~mvo/software-center/raring-pep8:
  - fixes for new pep8

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 
39
39
    # base path for the review summary, the JS will append %i.png
40
40
    # (with i={1,5})
41
 
    REVIEW_SUMMARY_STARS_BASE_PATH = ("/usr/share/software-center/images/"
42
 
        "review-summary")
 
41
    REVIEW_SUMMARY_STARS_BASE_PATH = \
 
42
        "/usr/share/software-center/images/review-summary"
43
43
    REVIEWS_SERVER = (os.environ.get("SOFTWARE_CENTER_REVIEWS_HOST") or
44
 
        "http://localhost:8000")
 
44
                      "http://localhost:8000")
45
45
 
46
46
    # You need to set this var to enable purchases
47
47
    PURCHASE_APP_URL = ""
64
64
        The description of the application displayed in the about dialog
65
65
        """
66
66
        return _("Lets you choose from thousands of applications available "
67
 
            "for your system.")
 
67
                 "for your system.")
68
68
 
69
69
    def get_distro_channel_name(self):
70
70
        """ The name of the main channel in the Release file (e.g. Ubuntu)"""
87
87
        return self._distro_code_name
88
88
 
89
89
    def get_maintenance_status(self, cache, appname, pkgname, component,
90
 
        channelname):
 
90
                               channelname):
91
91
        raise UnimplementedError
92
92
 
93
93
    def get_license_text(self, component):
110
110
 
111
111
    def get_install_warning_text(self, cache, pkg, appname, depends):
112
112
        primary = (utf8(_("To install %s, these items must be removed:")) %
113
 
            utf8(appname))
 
113
                   utf8(appname))
114
114
        button_text = _("Install Anyway")
115
115
 
116
116
        # alter it if a meta-package is affected
117
117
        for m in depends:
118
118
            if cache[m].section == "metapackages":
119
 
                primary = utf8(_("If you install %s, future updates will not "
120
 
                                 "include new items in <b>%s</b> set. "
121
 
                                 "Are you sure you want to continue?")) % (
122
 
                                 utf8(appname), cache[m].installed.summary)
 
119
                primary = utf8(
 
120
                    _("If you install %s, future updates will not "
 
121
                      "include new items in <b>%s</b> set. "
 
122
                      "Are you sure you want to continue?")) % (
 
123
                          utf8(appname), cache[m].installed.summary)
123
124
                button_text = _("Install Anyway")
124
125
                depends = []
125
126
                break