~randomaction/ubufox/lp274605

« back to all changes in this revision

Viewing changes to pfs/db/plugindb.py

  • Committer: Alexander Sack
  • Date: 2008-10-14 21:04:03 UTC
  • mfrom: (9.1.130 ubufox)
  • Revision ID: asac@jwsdot.com-20081014210403-x1zhz5033r443w82
* ubufox release candidate 0.6 (lp:ubufox / bzr 139); Features:
  - firefox restart notification on upgrade
  - improved plugin wizard
  - plugin alternative wizard lets you select a preferred plugin
    for a specific mime-type
* elminate all cherry picked changes since beta1
  - (cherry-pick rev 111 from lp:ubufox)
  - (cherry-pick rev 112 from lp:ubufox)
  - (cherry-pick rev 113 from lp:ubufox)
  - (cherry-pick rev 114 from lp:ubufox)
  - (cherry-pick rev 116 from lp:ubufox)
  - (cherry-pick rev 115 from lp:ubufox)

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
                        if e.mimetype in mimetype_pkgweights and e.pkgname in mimetype_pkgweights [ e.mimetype ]:
48
48
                                pkgweight = mimetype_pkgweights [ e.mimetype ] [ e.pkgname ]
49
49
 
50
 
                        print "insert into package (pkgname, pkgdesc, pkglongdesc, name, mimetype, architecture, appid, distribution, section, weight) values (?,?,?,?,?,?,\"{"+e.app_id.strip()+"}\",?,?,?)", \
51
 
                        e.pkgname, e.pkgdesc, e.pkglongdesc, e.name, e.mimetype, architecture, e.distribution, e.section, pkgweight
 
50
                        print "insert into package (pkgname, pkgdesc, pkglongdesc, name, mimetype, architecture, appid, distribution, section, weight, filehint, description) values (?,?,?,?,?,?,\"{"+e.app_id.strip()+"}\",?,?,?,?,?)", \
 
51
                        e.pkgname, e.pkgdesc, e.pkglongdesc, e.name, e.mimetype, architecture, e.distribution, e.section, pkgweight, e.filehint, e.description
52
52
 
53
53
                        try:
54
 
                                self._apt_con.execute("insert into package (pkgname, pkgdesc, pkglongdesc, name, mimetype, architecture, appid, distribution, section, weight) values (?,?,?,?,?,?,\"{"+e.app_id.strip()+"}\",?,?,?)", \
55
 
                                        (e.pkgname, e.pkgdesc, e.pkglongdesc, e.name, e.mimetype, architecture, e.distribution, e.section, pkgweight))
 
54
                                self._apt_con.execute("insert into package (pkgname, pkgdesc, pkglongdesc, name, mimetype, architecture, appid, distribution, section, weight, filehint, description) values (?,?,?,?,?,?,\"{"+e.app_id.strip()+"}\",?,?,?,?,?)", \
 
55
                                        (e.pkgname, e.pkgdesc, e.pkglongdesc, e.name, e.mimetype, architecture, e.distribution, e.section, pkgweight, e.filehint, e.description))
56
56
                                print " ... inserted ... "
57
57
                        except Exception, e:
58
58
                                print "ERROR", e.args
78
78
                                "  distribution string NOT NULL," + \
79
79
                                "  section string NOT NULL," + \
80
80
                                "  weight integer NOT NULL," + \
 
81
                                "  filehint integer NOT NULL," + \
 
82
                                "  description integer NOT NULL," + \
81
83
                                "  UNIQUE (pkgname, architecture, appid, mimetype, distribution)" + \
82
84
                                ");")
83
85