~mmcg069/software-center/tiny-back-forward-tweak

« back to all changes in this revision

Viewing changes to softwarecenter/distro/Ubuntu.py

  • Committer: Matthew McGowan
  • Date: 2011-02-03 10:14:23 UTC
  • mfrom: (1354.2.100 software-center)
  • Revision ID: matthew.joseph.mcgowan@gmail.com-20110203101423-nd8sciy0n2yhi03e
merge w trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
216
216
        """
217
217
        generates the url for a downloadable icon based on its pkgname and the icon filename itself
218
218
        """
 
219
        if cache is None:
 
220
            return None
219
221
        full_archive_url = cache[pkgname].candidate.uri
220
222
        split_at_pool = full_archive_url.split("pool")[0]
221
223
        # support ppas and extras.ubuntu.com