/[gentoo]/src/packages/purge_db.py
Gentoo

Diff of /src/packages/purge_db.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.2
14 14
15def delete_package(db,package): 15def delete_package(db,package):
16 category, name = package[:2] 16 category, name = package[:2]
17 c = db.cursor() 17 c = db.cursor()
18 query = ('DELETE FROM package WHERE name="%s" AND category="%s"' % 18 query = ('DELETE FROM package WHERE name="%s" AND category="%s"' %
19 (category,name)) 19 (name,category))
20 #print query 20 #print query
21 c.execute(query) 21 c.execute(query)
22 22
23def get_path(ebuild): 23def get_path(ebuild):
24 category, name, version = ebuild[:3] 24 category, name, version = ebuild[:3]

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20