Brock,

The proposed search dialog allows one to specify a token and search for it in a single authority or all authorities. The data returned will be package name, package description and status when searching in a single authority and package name, authority nane and status when searcging in all repositories.

I believe that we want the token to match a package name or a package description.

I was not able to figure out how to do this on the command line.
Should I be able to?

When I tried to run your code I got errors which I do not get when I run from the gate. See attached.

Padraig

On 02/14/09 05:26, Brock Pytlik wrote:
Here's the preliminary/alpah/pre-alpha/"should never see the light of day" webrev representing the current state the codes in.

The API code has been cleaned up a tiny bit, but basically the code is in the state it's in when I develop it.

Things I know I need to fix: error handling, formatting, removing commented code, making it work with the test suite, and probably lots more I can't think of at the moment.

Things that might yet be changed: Basically everything. I think the api is converging, but I spent today doing a fairly major rewhack so I might rethink things again as I get more distance.

I'll be updating it in place as I make changes to either the client or server API.

John, Michal, Padraig, please let me know if there are pieces of information missing from the API as is.


If anyone else feels like diving in, comments are of course welcome (though ones about formatting and commented code will probably be ignored for a while).

http://cr.opensolaris.org/~bpytlik/prelim_search_v1/

Thanks

Brock
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
bash-3.2$ pkg search -s http://osol-re.sfbay.sun.com games
servers:[{'origin': 'http://osol-re.sfbay.sun.com'}]
Some servers failed to respond:
failed:<exceptions.RuntimeError instance at 0x8490bac>
bash-3.2$ pkg search -r games
servers:[]
Some servers failed to respond:
failed:<exceptions.RuntimeError instance at 0x8490acc>
bash-3.2$ pkg search -l games
servers:[]
Traceback (most recent call last):
  File "/usr/bin/pkg", line 2316, in ?
    __ret = main_func()
  File "/usr/bin/pkg", line 2273, in main_func
    return search(mydir, pargs)
  File "/usr/bin/pkg", line 951, in search
    searches.append(api_inst.local_search([api.Query(" ".join(pargs), 
case_sensitive, return_actions, None, None)]))
  File "/usr/lib/python2.4/vendor-packages/pkg/client/api.py", line 842, in 
local_search
    i, q = tmp
NameError: global name 'tmp' is not defined


pkg: This is an internal error.  Please let the developers know about this
problem by filing a bug at http://defect.opensolaris.org and including the
above traceback and this message.  The version of pkg(5) is 'b95d76c53b5e+'.

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to