On 02/ 9/11 04:03 PM, Danek Duvall wrote:
Shawn Walker wrote:
On 02/ 8/11 02:06 PM, Danek Duvall wrote:
Shawn Walker wrote:
On 02/ 7/11 05:08 PM, Danek Duvall wrote:
Shawn Walker wrote:
http://cr.opensolaris.org/~swalker/pkg-arc/
repo.py:
- should get_publisherinfo() catch UnknownArchiveFiles, too?
It catches anything that's an Exception, so it's already handling that.
It does, but unlike all the other methods here (like get_datastream()), it
doesn't treat it differently.
The difference is that with get_publisherinfo(), you're not asking
for a specific file. It's more of a "you get everything or it
failed". All of the other functions are retrieving specific content.
So there's no ENOENT equivalent, it's all EPROTO? It seemed odd to me that
there wouldn't be two possibilities the same way it was for everything
else, but if that's the case, I'm fine with it.
For this particular function, yes.
ENOENT is only used when retrieving specific items as opposed to a blob
of data.
-Shawn
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss