On 01/14/10 11:52 PM, Danek Duvall wrote:
Shawn Walker wrote:
Right now, the p5i API expects either a file-like object or the absolute
pathname of a file.
Johansen suggested in person that perhaps the transport code could spit out
a p5i object, just like it spits out manifest and catalog objects, and that
seemed reasonable to me.
There really isn't such a thing as a p5i object. There's a p5i module
with parse and write methods, but the parse method returns publisher
objects and the write method, well, it writes to a file-like object :)
However, I'm a bit surprised that the p5i constructor doesn't take a string
as input. Then again, I'm constantly surprised that the manifest
constructor doesn't, either.
It could rather easily, I think. If that's the preferred route, that's
ok with me. I can change the transport method to return a string at
that point.
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss