summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Hopkins <marduk@gentoo.org>2005-10-04 01:44:45 +0000
committerAlbert Hopkins <marduk@gentoo.org>2005-10-04 01:44:45 +0000
commit0ba9370d397011e42cac583e153bb13b9f6b93a9 (patch)
tree873095e980b4e49a124f85abba311ae660cd0d32
parent*** empty log message *** (diff)
downloadgentoo-0ba9370d397011e42cac583e153bb13b9f6b93a9.tar.gz
gentoo-0ba9370d397011e42cac583e153bb13b9f6b93a9.tar.bz2
gentoo-0ba9370d397011e42cac583e153bb13b9f6b93a9.zip
* get mask info from is_masked column
* used inline pkgsplit() to avoid having to import portage (which is slow)
-rw-r--r--src/packages/query_ebuild.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/packages/query_ebuild.py b/src/packages/query_ebuild.py
index e6fb46785d..fbf0ffc127 100644
--- a/src/packages/query_ebuild.py
+++ b/src/packages/query_ebuild.py
@@ -22,7 +22,7 @@ if 0:
else:
# let's try the database
# connect
- pieces = gentoo.portage.pkgsplit(ebuild)
+ pieces = gentoo.pkgsplit(ebuild)
name = pieces[0]
if pieces[2] == 'r0':
version = pieces[1]
@@ -31,7 +31,7 @@ else:
db = ebuilddb.db_connect()
# query
query = ('SELECT ebuild.category,ebuild.name,version,when_found,'
- 'description,changelog,arch,homepage,license '
+ 'description,changelog,arch,homepage,license,is_masked '
'FROM ebuild,package WHERE ebuild.name="%s" AND '
'version="%s" AND '
'ebuild.name=package.name AND ebuild.category=package.category '
@@ -43,7 +43,7 @@ else:
if result:
#print result
eb = gentoo.query_to_dict(result)
- sys.stdout.write(gentoo.ebuild_to_html(eb,show_bugs=1))
+ sys.stdout.write(gentoo.ebuild_to_html(eb,show_bugs=0, full=True))
sys.exit(0)
# else 404
else: