Gentoo Archives: gentoo-commits

From: "Fabian Groffen (grobian)" <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r13682 - main/branches/prefix/pym/_emerge
Date: Wed, 24 Jun 2009 08:36:22
Message-Id: E1MJNxs-0003C5-Pv@stork.gentoo.org
1 Author: grobian
2 Date: 2009-06-24 08:36:19 +0000 (Wed, 24 Jun 2009)
3 New Revision: 13682
4
5 Modified:
6 main/branches/prefix/pym/_emerge/__init__.py
7 Log:
8 make postsync scripts work, thanks haubi for the patch
9
10 Modified: main/branches/prefix/pym/_emerge/__init__.py
11 ===================================================================
12 --- main/branches/prefix/pym/_emerge/__init__.py 2009-06-24 07:12:40 UTC (rev 13681)
13 +++ main/branches/prefix/pym/_emerge/__init__.py 2009-06-24 08:36:19 UTC (rev 13682)
14 @@ -13368,12 +13368,12 @@
15 chk_updated_cfg_files(EPREFIX, settings.get("CONFIG_PROTECT","").split())
16
17 if myaction != "metadata":
18 - if os.access(portage.USER_CONFIG_PATH + EPREFIX + "/bin/post_sync", os.X_OK):
19 + if os.access(EPREFIX + portage.USER_CONFIG_PATH + "/bin/post_sync", os.X_OK):
20 retval = portage.process.spawn(
21 - [os.path.join(portage.USER_CONFIG_PATH, EPREFIX_LSTRIP, "bin", "post_sync"),
22 + [os.path.join('/', EPREFIX_LSTRIP, portage.USER_CONFIG_PATH.lstrip(os.path.sep), "bin", "post_sync"),
23 dosyncuri], env=settings.environ())
24 if retval != os.EX_OK:
25 - print red(" * ")+bold("spawn failed of "+ portage.USER_CONFIG_PATH + EPREFIX + "/bin/post_sync")
26 + print red(" * ")+bold("spawn failed of "+ EPREFIX + portage.USER_CONFIG_PATH + "/bin/post_sync")
27
28 if(mybestpv != mypvs) and not "--quiet" in myopts:
29 print