From: Ned Ludd Date: Sun, 25 Dec 2005 09:33:17 +0000 (-0000) Subject: - initial commit of post --sync hook. postsync.d to come at a later time X-Git-Tag: v2.1_pre3~43 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5f299112505c1d700514e9a0f4d64bf3b4f769fb;p=portage.git - initial commit of post --sync hook. postsync.d to come at a later time svn path=/main/trunk/; revision=2461 --- 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"