~mvo/software-center/arb-partner-channels-5.0

« back to all changes in this revision

Viewing changes to softwarecenter/db/update.py

  • Committer: Michael Vogt
  • Date: 2012-03-27 10:49:47 UTC
  • Revision ID: michael.vogt@ubuntu.com-20120327104947-s76c6lsf13p6oes0
softwarecenter/db/update.py: ensure partner/extra is "priceless" 

Show diffs side-by-side

added added

removed removed

Lines of Context:
181
181
        if u.scheme == "http" and u.netloc ==  "archive.canonical.com":
182
182
            distroseries = get_distro().get_codename()
183
183
            self.sca_entry.channel = "%s-partner" % distroseries
 
184
            if hasattr(self.sca_entry, "price"):
 
185
                del self.sca_entry.price
184
186
        if u.scheme == "http" and u.netloc ==  "extras.ubuntu.com":
185
187
            self.sca_entry.channel = "ubuntu-extras"
 
188
            if hasattr(self.sca_entry, "price"):
 
189
                del self.sca_entry.price
186
190
 
187
191
    def get_desktop(self, key, translated=True):
188
192
        if key in self.STATIC_DATA: