On 11/10/10 05:05 PM, Danek Duvall wrote:
Shawn Walker wrote:

The version here effectively specifies the initial version of the
configuration to use if one can't be determined from the configuration
file itself.  In short, if we specify 3 here, but on load the config
class discovers it's 7, it will auto-correct.

What happens if the class is unable to discover the version because the
version is too new and the class can't properly parse the configuration?

Parsing errors would raise a different exception and so that wouldn't be a concern.

Thus no auto-correction, and so the version remains, incorrectly, at 3.
Does this go into the fallback you mention below based on what paths are
there?

If there was a parsing error, no. But if we couldn't get any version information from configuration at all, then yes, the fallback gets used as a last ditch attempt to determine what sort of image is being used.

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

Reply via email to