diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2015-08-09 17:47:13 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2015-08-09 17:47:13 -0400 |
commit | 5abaa600ab3fe65d18c15e228cc0e36ba4d690c7 (patch) | |
tree | 5ec21d362c9ed3e0c3b5e1c6f62bcd4023d39ba2 /grs/Constants.py | |
parent | grs/Kernel.py: don't rebuild/reinstall a kernel if its linux-image tarball ex... (diff) | |
download | grss-5abaa600ab3fe65d18c15e228cc0e36ba4d690c7.tar.gz grss-5abaa600ab3fe65d18c15e228cc0e36ba4d690c7.tar.bz2 grss-5abaa600ab3fe65d18c15e228cc0e36ba4d690c7.zip |
Remove CONST.namervers[]. To be provided by grs repo.
Diffstat (limited to 'grs/Constants.py')
-rw-r--r-- | grs/Constants.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/grs/Constants.py b/grs/Constants.py index 79551f9..0025eb4 100644 --- a/grs/Constants.py +++ b/grs/Constants.py @@ -26,7 +26,6 @@ class Constants(): """ Read a global configuration file and set/override constants for each GRS spec. These constants are exported in the form: - CONST.nameservers[x] contains the namserver for the xth GRS spec CONST.repo_uris[x] contains the repo_uri for the xth GRS spec etc. @@ -44,13 +43,14 @@ class Constants(): kernelroot : /tmp/kernel_src_tree [my-cool-server] - nameserver : 192.168.100.1 + package : /var/tmp/my-packages Then CONST.kernelroots[0] is '/tmp/kernel_src_tree' rather than the default value '/var/tmp/grs/my-cool-desktop/kernel'. The remainder of the constants default as delineated in the space[] dictionary with %s replaced by 'my-cool-desktop'. Similarly CONST.my-cool-servers[1] - is 192.168.100.1 rather than 8.8.8.8. + has package directory '/var/tmp/my-package' rather than the default + value '/var/tmp/grs/my-cool-server/packages', Finally, the that class overrides __setattr__, __gettattr__ and __delattr__ so that you cannot add/change/delete constants in @@ -75,7 +75,6 @@ class Constants(): # This is the space of all possible constants for any given GRS namespace space = { - 'nameserver' : '8.8.8.8', 'repo_uri' : 'git://anongit.gentoo.org/proj/grs.git', 'stage_uri' : default_stage_uri, 'libdir' : '/var/lib/grs/%s', |