~osomon/software-center/qml

« back to all changes in this revision

Viewing changes to softwarecenter/distro/Ubuntu.py

  • Committer: Olivier Tilloy
  • Date: 2011-11-04 15:35:16 UTC
  • mfrom: (1773.49.656 software-center)
  • Revision ID: olivier@tilloy.net-20111104153516-np83cyxd806bt71p
Merged the latest changes from trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
class Ubuntu(Debian):
35
35
 
36
36
    # see __init__.py description
37
 
    DISTROSERIES = ["oneiric",
 
37
    DISTROSERIES = ["precise",
 
38
                    "oneiric",
38
39
                    "natty",
39
40
                   ]
40
41
 
45
46
    SCREENSHOT_THUMB_URL =  "http://screenshots.ubuntu.com/thumbnail-with-version/%(pkgname)s/%(version)s"
46
47
    SCREENSHOT_LARGE_URL = "http://screenshots.ubuntu.com/screenshot-with-version/%(pkgname)s/%(version)s"
47
48
 
 
49
    # the json description of the available screenshots
 
50
    SCREENSHOT_JSON_URL = "http://screenshots.ubuntu.com/json/package/%s"
 
51
 
48
52
    # purchase subscription
49
53
    PURCHASE_APP_URL = BUY_SOMETHING_HOST+"/subscriptions/%s/ubuntu/%s/+new/?%s"
50
54
 
56
60
    # FIXME: does that make sense?!?
57
61
    REVIEW_STATS_URL = REVIEWS_SERVER+"/review-stats"
58
62
 
 
63
    # Starting point for Ubuntu app developers
 
64
    DEVELOPER_URL = "http://developer.ubuntu.com/"
 
65
 
59
66
    def get_app_name(self):
60
67
        return _("Ubuntu Software Center")
61
68
 
128
135
        query2 = xapian.Query(xapian.Query.OP_OR, query2a, query2b)
129
136
        return xapian.Query(xapian.Query.OP_AND, query1, query2)
130
137
 
 
138
    def get_supported_filter_name(self):
 
139
        return _("Canonical-Maintained Software")
 
140
 
131
141
    def get_maintenance_status(self, cache, appname, pkgname, component, channelname):
132
142
        # try to figure out the support dates of the release and make
133
143
        # sure to look only for stuff in "Ubuntu" and "distro_codename"