Permalink
Browse files

reorganized the config options

  • Loading branch information...
1 parent 15597ff commit 27949c3f6028f5fd29054a73fcb524e3303a39cf @rafaelmartins committed Aug 1, 2010
Showing with 4 additions and 6 deletions.
  1. +2 −2 etc/g-octave.cfg
  2. +1 −2 g_octave/config.py
  3. +1 −2 tests/test_config.py
View
@@ -19,7 +19,7 @@
# The path to the overlay. If you's using Paludis or Pkgcore you'll need
# to configure this overlay in your package manager before run g-octave
#
-#overlay = /usr/local/portage/g-octave
+#overlay = /var/lib/g-octave
# The comma-separated list of available categories.
#
@@ -28,7 +28,7 @@
# The mirror where g-octave will look for the auxiliary files. Please
# keep as it is.
#
-#db_mirror = http://soc.dev.gentoo.org/~rafaelmartins/g-octave/db/
+#db_mirror = github://rafaelmartins/g-octave-db
# The logging level. Leave empty to disable the logging feature.
# Available levels: debug, info, warning, error, critical
View
@@ -30,12 +30,11 @@ class Config(object):
_defaults = {
'db': '/var/cache/g-octave',
- 'overlay': '/usr/local/portage/g-octave',
+ 'overlay': '/var/lib/g-octave',
'categories': 'main,extra,language',
'db_mirror': 'github://rafaelmartins/g-octave-db-test',
'trac_user': '',
'trac_passwd': '',
- 'pkg_cache': '',
'log_level': '',
'log_file': '/var/log/g-octave.log',
'package_manager': 'portage',
View
@@ -39,12 +39,11 @@ def setUp(self):
def test_empty_config_attributes(self):
self.assertEqual(self._empty_cfg.db, '/var/cache/g-octave')
- self.assertEqual(self._empty_cfg.overlay, '/usr/local/portage/g-octave')
+ self.assertEqual(self._empty_cfg.overlay, '/var/lib/g-octave')
self.assertEqual(self._empty_cfg.categories, 'main,extra,language')
self.assertEqual(self._empty_cfg.db_mirror, 'github://rafaelmartins/g-octave-db-test')
self.assertEqual(self._empty_cfg.trac_user, '')
self.assertEqual(self._empty_cfg.trac_passwd, '')
- self.assertEqual(self._empty_cfg.pkg_cache, '')
self.assertEqual(self._empty_cfg.log_level, '')
self.assertEqual(self._empty_cfg.log_file, '/var/log/g-octave.log')
self.assertEqual(self._empty_cfg.package_manager, 'portage')

0 comments on commit 27949c3

Please sign in to comment.