Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 559836

Summary: don't run repo.postsync.d hooks on sync failure
Product: Portage Development Reporter: Ryan Hill (RETIRED) <rhill>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ryan Hill (RETIRED) gentoo-dev 2015-09-07 07:27:50 UTC
Currently if a repo fails to sync the repo.postsync.d hooks still get called.  Depending on what the hooks do this can leave things in an inconsistent state, or at the very least do some unnecessary work (eg. needlessly running egencache when nothing has changed).  I think it makes more sense to only run the hooks when the sync succeeds.