> > http://cr.opensolaris.org/~johansen/webrev-3099/ > > Before, if the file was in the cache, we'd check it, note that it didn't > verify (which deletes it) and return to the user.
Almost. If it didn't verify, we'd raise an InvalidContentException. This exception would propogate to the top level exception handler. Once at the top, we would exit with a very ominous error. > Now, if it's in the cache we do the same thing, but catch the exception. > We actually go over the network because we fall out of the except block > which eventually takes us into _add_action which adds us to self.fhash > which is the list/dict that's iterated over to decide what to actually > go across the network to download. Now if it's in the cache and we get a content exception, the verify routine will delete the file, and we'll call _add_action() which will cause us to download the file from a remote host. > Have I got it straight? I think so. Thanks for looking at this. -j _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
