From 5f299112505c1d700514e9a0f4d64bf3b4f769fb Mon Sep 17 00:00:00 2001 From: Ned Ludd Date: Sun, 25 Dec 2005 09:33:17 +0000 Subject: [PATCH] - initial commit of post --sync hook. postsync.d to come at a later time svn path=/main/trunk/; revision=2461 --- bin/emerge | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/emerge b/bin/emerge index 34115f689..66f1d0eb0 100755 --- a/bin/emerge +++ b/bin/emerge @@ -2878,6 +2878,13 @@ if myaction in ["sync","rsync","metadata"] and (not "--help" in myopts): chk_updated_cfg_files() + if myaction != "metadata": + if os.access(portage.USER_CONFIG_PATH + "/bin/post_sync", os.X_OK): + try: + portage.spawn(portage.USER_CONFIG_PATH + "/bin/post_sync " + dosyncuri, portage.settings, free=1) + except: + print red(" * ")+bold("spawn failed of "+ portage.USER_CONFIG_PATH + "/bin/post_sync") + if(mybestpv != mypvs) and not "--quiet" in myopts: print print red(" * ")+bold("An update to portage is available.")+" It is _highly_ recommended" -- 2.26.2