- initial commit of post --sync hook. postsync.d to come at a later time
authorNed Ludd <solar@gentoo.org>
Sun, 25 Dec 2005 09:33:17 +0000 (09:33 -0000)
committerNed Ludd <solar@gentoo.org>
Sun, 25 Dec 2005 09:33:17 +0000 (09:33 -0000)
svn path=/main/trunk/; revision=2461

bin/emerge

index 34115f6892558d8007fc36c32a41e3e39b51caba..66f1d0eb0cdc990ea7b479159a287474502818cb 100755 (executable)
@@ -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"