summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNed Ludd <solar@gentoo.org>2005-12-25 09:33:17 +0000
committerNed Ludd <solar@gentoo.org>2005-12-25 09:33:17 +0000
commit5f299112505c1d700514e9a0f4d64bf3b4f769fb (patch)
tree536a88ded933d8999cea83787057614d57377902
parent4ca0a35889cacd686e69ce5083b14b19ff689aa4 (diff)
downloadportage-5f299112505c1d700514e9a0f4d64bf3b4f769fb.tar.gz
portage-5f299112505c1d700514e9a0f4d64bf3b4f769fb.tar.bz2
portage-5f299112505c1d700514e9a0f4d64bf3b4f769fb.zip
- initial commit of post --sync hook. postsync.d to come at a later time
svn path=/main/trunk/; revision=2461
-rwxr-xr-xbin/emerge7
1 files changed, 7 insertions, 0 deletions
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"