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

Diff of /src/packages/query_ebuild.py

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

Revision 1.2 Revision 1.3
20if 0: 20if 0:
21 send_file = html_file 21 send_file = html_file
22else: 22else:
23 # let's try the database 23 # let's try the database
24 # connect 24 # connect
25 pos=ebuilddb.FINDVER.search(ebuild).start() 25 pieces = gentoo.portage.pkgsplit(ebuild)
26 name = ebuild[:pos] 26 name = pieces[0]
27 version = ebuild[pos+1:] 27 if pieces[2] == 'r0':
28 version = pieces[1]
29 else:
30 version = '-'.join(pieces[1:])
28 db = ebuilddb.db_connect() 31 db = ebuilddb.db_connect()
29 # query 32 # query
30 query = ('SELECT ebuild.category,ebuild.name,version,when_found,' 33 query = ('SELECT ebuild.category,ebuild.name,version,when_found,'
31 'description,changelog,arch,homepage,license ' 34 'description,changelog,arch,homepage,license '
32 'FROM ebuild,package WHERE ebuild.name="%s" AND ' 35 'FROM ebuild,package WHERE ebuild.name="%s" AND '

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

  ViewVC Help
Powered by ViewVC 1.1.20