1 |
commit: 27d24c02d4e5ddf13b97018d87007a8e67bdfa0b |
2 |
Author: Magnus Granberg <zorry <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Apr 30 14:33:16 2012 +0000 |
4 |
Commit: Magnus Granberg <zorry <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 30 14:33:16 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/zorry.git;a=commit;h=27d24c02 |
7 |
|
8 |
fix error with var/lib/gobs and var/cache/gobs |
9 |
|
10 |
--- |
11 |
gobs/pym/package.py | 2 +- |
12 |
gobs/pym/updatedb.py | 2 +- |
13 |
2 files changed, 2 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/gobs/pym/package.py b/gobs/pym/package.py |
16 |
index d6b4eb8..4c571b6 100644 |
17 |
--- a/gobs/pym/package.py |
18 |
+++ b/gobs/pym/package.py |
19 |
@@ -25,7 +25,7 @@ class gobs_package(object): |
20 |
|
21 |
def change_config(self, config_id): |
22 |
# Change config_root config_id = table configs.id |
23 |
- my_new_setup = "/var/lib/gobs/" + gobs_settings_dict['gobs_gitreponame'] + "/" + config_id + "/" |
24 |
+ my_new_setup = "/var/cache/gobs/" + gobs_settings_dict['gobs_gitreponame'] + "/" + config_id + "/" |
25 |
mysettings_setup = portage.config(config_root = my_new_setup) |
26 |
return mysettings_setup |
27 |
|
28 |
|
29 |
diff --git a/gobs/pym/updatedb.py b/gobs/pym/updatedb.py |
30 |
index da80521..0277396 100755 |
31 |
--- a/gobs/pym/updatedb.py |
32 |
+++ b/gobs/pym/updatedb.py |
33 |
@@ -48,7 +48,7 @@ def init_portage_settings(): |
34 |
# Get default config from the configs table and default_config=1 |
35 |
config_id = get_default_config(conn) # HostConfigDir = table configs id |
36 |
CM.putConnection(conn); |
37 |
- default_config_root = "/var/lib/gobs/" + gobs_settings_dict['gobs_gitreponame'] + "/" + config_id[0] + "/" |
38 |
+ default_config_root = "/var/cache/gobs/" + gobs_settings_dict['gobs_gitreponame'] + "/" + config_id[0] + "/" |
39 |
# Set config_root (PORTAGE_CONFIGROOT) to default_config_root |
40 |
mysettings = portage.config(config_root = default_config_root) |
41 |
logging.info("Setting default config to: %s", config_id[0]) |