# isoinfo_f should be a last resort only
"isoinfo_f":["calc_contents","isoinfo -f -i %(file)s"],
}
+
+
+confdefaults={
+ "storedir": "/var/tmp/catalyst",
+ "sharedir": "/usr/lib/catalyst",
+ "distdir": "/usr/portage/distfiles",
+ "repo_name": "portage",
+ "portdir": "/usr/portage",
+ "packagedir": "/usr/portage/packages",
+ "port_tmpdir": "/var/tmp/portage",
+ "options": "",
+ "snapshot_name": "portage-",
+ "snapshot_cache": "/var/tmp/catalyst/snapshot_cache",
+ "hash_function": "crc32",
+ }
+
import catalyst.config
import catalyst.util
from catalyst.support import CatalystError, find_binary, LockInUse
-from defaults import (required_build_targets, valid_build_targets,
- hash_definitions
+from catalyst.defaults import (required_build_targets, valid_build_targets,
+ hash_definitions, confdefaults
)
from hash_utils import HashMap
myconf={}
config_file=""
- confdefaults={
- "storedir": "/var/tmp/catalyst",
- "sharedir": "/usr/lib/catalyst",
- "distdir": "/usr/portage/distfiles",
- "repo_name": "portage",
- "portdir": "/usr/portage",
- "packagedir": "/usr/portage/packages",
- "port_tmpdir": "/var/tmp/portage",
- "options": "",
- "snapshot_name": "portage-",
- "snapshot_cache": "/var/tmp/catalyst/snapshot_cache",
- "hash_function": "crc32",
- }
-
# first, try the one passed (presumably from the cmdline)
if myconfig:
if os.path.exists(myconfig):
sys.exit(1)
# now, load up the values into conf_values so that we can use them
- for x in confdefaults.keys():
+ for x in list(confdefaults):
if x in myconf:
print "Setting",x,"to config file value \""+myconf[x]+"\""
conf_values[x]=myconf[x]