~lubuntu-software-center-team/lubuntu-software-center/python3-merge

« back to all changes in this revision

Viewing changes to scripts/lubuntu-software-center-build-db

  • Committer: Julien Lavergne
  • Date: 2012-07-01 11:33:49 UTC
  • Revision ID: gilir@ubuntu.com-20120701113349-biklmgmxxtd2ikc0
Update also scripts/ directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/env python
 
1
#!/usr/bin/env python3
2
2
# -*- coding:UTF-8 -*-
3
3
#       Copyright (c) Stephen Smally <stephen.smally@gmail.com>
4
4
#
105
105
        icon = single_pkg.get("Icon")
106
106
        categs = single_pkg.getCategories()
107
107
        if categs == []:
108
 
            categs = [u"Other"]
 
108
            categs = ["Other"]
109
109
        comment = single_pkg.get("Comment").decode("UTF-8")
110
110
        dep_list = []
111
111
        rec_list = []
119
119
                ver = depcache.get_candidate_ver(cache[pkg])
120
120
                infos.lookup(ver.translated_description.file_list[0])
121
121
                desc = infos.long_desc
122
 
                if comment == u'':
 
122
                if comment == '':
123
123
                    comment = infos.short_desc.decode("UTF-8").capitalize()
124
124
                packages[pkg] = [
125
125
                categs,
183
183
                    cat = package.section.replace("multiverse/", "").replace("universe/", "").replace("restricted/", "")
184
184
                    name = pkg.capitalize()
185
185
                    comment = infos.short_desc
186
 
                    icon = u"deb"
 
186
                    icon = "deb"
187
187
                    desc = infos.long_desc
188
188
                    deps_func = get_pkg_depends(pkg)
189
189
                    dep_list = []