-Config::Config(SourcePackage &p):
- package(p),
- changed(false)
-{ }
-
-void Config::add_option(const string &n, const string &v, const string &d)
-{
- Option opt(n, v, d);
- if(pending_options.count(n))
- opt.value = pending_options[n];
- options.insert(OptionMap::value_type(n, opt));
-}
-
-const Config::Option &Config::get_option(const string &name) const
-{
- return get_item(options, name);
-}
-
-bool Config::is_option(const string &name) const
-{
- return options.count(name);
-}
-
-void Config::save() const