aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Harring <ferringb@gentoo.org>2005-07-28 20:01:28 +0000
committerBrian Harring <ferringb@gentoo.org>2005-07-28 20:01:28 +0000
commit96c81801fb99caade3f50b3864c856221ede983e (patch)
tree4c435084b1fb759d90d86d95af3e970ae8d9f8d7
parentbug in bool_parser's var interpretation ("no" != True, "no" == False) (diff)
downloadportage-cvs-96c81801fb99caade3f50b3864c856221ede983e.tar.gz
portage-cvs-96c81801fb99caade3f50b3864c856221ede983e.tar.bz2
portage-cvs-96c81801fb99caade3f50b3864c856221ede983e.zip
addition of readonly + bool type to cache section definition, and setting config to use $PORDIR/metadata/config + readonly for example
config
-rw-r--r--rewrite-misc/conf_default_types5
-rw-r--r--rewrite-misc/config7
2 files changed, 9 insertions, 3 deletions
diff --git a/rewrite-misc/conf_default_types b/rewrite-misc/conf_default_types
index d57c95b..2974c31 100644
--- a/rewrite-misc/conf_default_types
+++ b/rewrite-misc/conf_default_types
@@ -96,6 +96,7 @@ incrementals = %(default_incrementals)s
defaults = class root incrementals
class = portage.config.domain
root = /
+positional = incrementals root profile repositories
[repo]
required = class location
@@ -109,12 +110,14 @@ section_ref = cache sync sync_cache
[cache]
required = class location label auxdbkeys
-defaults = class auxdbkeys location label
+defaults = class auxdbkeys location label readonly
class = portage.cache.flat_list.database
auxdbkeys = %(metadata_keys)s
location = %(cache_base_loc)s
+readonly = false
list = auxdbkeys
positional = location label auxdbkeys
+bool = readonly
[exec]
autoexec = true
diff --git a/rewrite-misc/config b/rewrite-misc/config
index c9d218a..e2134bd 100644
--- a/rewrite-misc/config
+++ b/rewrite-misc/config
@@ -1,11 +1,14 @@
-[/usr/portage]
+[metadata-cache]
type = cache
+class = portage.cache.metadata.database
+location = /usr/portage
+readonly = true
[rsync repo]
type = repo
class = portage.ebuild.repository
location = /usr/portage
-cache = '/usr/portage'
+cache = 'metadata-cache'
#[vdb]
#type = repo