On Wed, Jul 01, 2009 at 09:30:20AM -0500, Shawn Walker wrote: > I also encountered this failure in search today with the new transport > patch applied: > > time python ./client.py search -s "http://pkg.opensolaris.org/contrib/" > "<python>" > > PACKAGE > Traceback (most recent call last): > File "./client.py", line 2594, in ? > __ret = main_func() > File "./client.py", line 2545, in main_func > return search(mydir, pargs) > File "./client.py", line 1081, in search > return_type, pub) > File "./client.py", line 1000, in process_v_1_search > if pub is not None and "prefix" in pub: > TypeError: iterable argument required
Gah. That's because this code used to pass the authority around as a dictionary, but we now have a Publisher object. In order to cope with this case, I changed the API code to return either a Publisher object, or in the case where we don't know about the publisher, a RepositoryURI object. I've changed the code in process_v_1_search to cope with what pops back out. I'll test this again before I send out an updated webrev. Thanks for finding this. -j _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
