Problem with image.py search?
pydoc pkg.clients.image:
excerpt:
search(self, args)
Search the image for the token in args[0].
http://opensolaris.org/sc/src/pkg/gate/src/man/pkg.1.txt
excerpt:
search [-lr] [-s server] token
Search for the token "token", and display the FMRIs in which the token
was found. Which tokens are indexed are action-dependent, but may
include content hashes and pathnames.
By default, and with -l, search the image's installed packages.
With -r, search the servers corresponding to the image's authorities.
With -s, search the named servers. This may be specified multiple
times.
Both -l and -r (or -s) may be specified together, in which case both
local and remote searches will be performed.
As a direct result if one did 'pkg serach ld' the result would be:
[EMAIL PROTECTED] ~>pkg search ld
basename pkg:/[EMAIL PROTECTED],5.11-0.75:20071114T201208Z
basename pkg:/[EMAIL PROTECTED],5.11-0.75:20071114T203943Z
basename pkg:/[EMAIL PROTECTED],5.11-0.75:20071114T201238Z
"pkg search -lr ld" fails
NOTE: pkg search is using local and remote
However if we do:
def on_entry_actvate(self,widget):
self.spec_search(self.parent.image, self.entry.get_text())
def spec_search(self, img, args):
"""Search through the reverse index databases for the given token."""
self.smod.clear()
for k, v in img.search(args):
print k
ms = str(v).rsplit('/')
mss = ms[1].rsplit('@')
iter = None
iter = self.smod.append(None)
The rsult only comes from server and only args = 'make' returns SUNWdocs that I
have found to work.
Thanks
john
_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss