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

Bug 558322

Summary: portage checks for news before postsync.d/ hooks are executed
Product: Portage Development Reporter: Julian Ospald <hasufell>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: redneb
Priority: Normal Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 549914    

Description Julian Ospald 2015-08-20 23:25:09 UTC
More specifically: news are checked in between repo.postsync.d/ and postsync.d/

So if you pull the news manually into your tree in postsync.d/ hooks, this will sort of mess up expected behavior.

This is creating minor annoyance for our postsync.d hooks https://github.com/hasufell/portage-gentoo-git-config/pull/6 which help to run the gentoo tree directly from git.
Comment 1 Zac Medico gentoo-dev 2015-08-21 00:06:27 UTC
There's a patch in the following branch:

https://github.com/zmedico/portage/tree/bug_558322

I've posted it for review here:

https://archives.gentoo.org/gentoo-portage-dev/message/6f0d6cb3af6bccaaeeee137822f7297d
Comment 2 Zac Medico gentoo-dev 2015-08-21 02:13:09 UTC
This is in the master branch now:

https://gitweb.gentoo.org/proj/portage.git/commit/?id=bafb62bb32432094f1c413a9a7e2dc902ff11a5a
Comment 3 Brian Dolbec (RETIRED) gentoo-dev 2015-09-22 01:33:26 UTC
/etc/portage/repo.postsync.d/example
Comment 4 Brian Dolbec (RETIRED) gentoo-dev 2015-09-22 01:38:09 UTC
correction: Released in portage-2.2.21