Gentoo Archives: gentoo-commits

From: Magnus Granberg <zorry@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/zorry:master commit in: gobs/pym/
Date: Mon, 30 Apr 2012 16:45:17
Message-Id: 1335804290.efd00154e8398445fd1e24fc8cb0b5912e7a0851.zorry@gentoo
1 commit: efd00154e8398445fd1e24fc8cb0b5912e7a0851
2 Author: Magnus Granberg <zorry <AT> gentoo <DOT> org>
3 AuthorDate: Mon Apr 30 16:44:50 2012 +0000
4 Commit: Magnus Granberg <zorry <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 30 16:44:50 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/zorry.git;a=commit;h=efd00154
7
8 fix the ../base/etc/make.profile is not a symlink error
9
10 ---
11 gobs/pym/sync.py | 7 ++++++-
12 1 files changed, 6 insertions(+), 1 deletions(-)
13
14 diff --git a/gobs/pym/sync.py b/gobs/pym/sync.py
15 index ee4bd66..5f8f2d1 100644
16 --- a/gobs/pym/sync.py
17 +++ b/gobs/pym/sync.py
18 @@ -30,7 +30,8 @@ def sync_tree():
19 conn=CM.getConnection()
20 config_id = get_default_config(conn) # HostConfigDir = table configs id
21 CM.putConnection(conn)
22 - default_config_root = "/var/lib/gobs/" + gobs_settings_dict['gobs_gitreponame'] + "/" + config_id[0] + "/"
23 + default_config_root = "/var/cache/gobs/" + gobs_settings_dict['gobs_gitreponame'] + "/" + config_id[0] + "/"
24 + mysettings = portage.config(config_root = default_config_root)
25 tmpcmdline = []
26 tmpcmdline.append("--sync")
27 tmpcmdline.append("--quiet")
28 @@ -42,5 +43,9 @@ def sync_tree():
29 logging.warning("Emerge --sync fail!")
30 return False
31 else:
32 + os.mkdir(mysettings['PORTDIR'] + "/profiles/config", 0o777)
33 + with open(mysettings['PORTDIR'] + "/profiles/config/parent", "w") as f:
34 + f.write("../base\n")
35 + f.close()
36 logging.info("Emerge --sync ... Done.")
37 return True