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

Bug 588442

Summary: sys-apps/portage-2.3.0: wait for another emerge processes to end before recording Manifest
Product: Portage Development Reporter: Pacho Ramos <pacho>
Component: RepomanAssignee: Portage team <dev-portage>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=175612
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 377365    

Description Pacho Ramos gentoo-dev 2016-07-09 15:01:08 UTC
From time to time I see that wrong Manifests are written by me. Last time it happened, I think it was due to me running in one terminal tab "emerge package" and, while the file was still being downloaded, me running "repoman manifest" for the same package and version in another terminal.

Then, if the file was still being downloaded by the first "emerge" invocation, probably repoman should wait until any process related with fetching the distfiles are running :/ Is this being handled via some locks or similar? If that is not the issue, then, I don't understand why I still hit this wrong Manifests issue from time to time :S

Thanks
Comment 1 Zac Medico gentoo-dev 2016-07-09 18:22:23 UTC
(In reply to Pacho Ramos from comment #0)
> Then, if the file was still being downloaded by the first "emerge"
> invocation, probably repoman should wait until any process related with
> fetching the distfiles are running

Yeah, the problem is that it does not try to acquire a lock if the file exists, and we really need to use a separate file name for partial downloads, as suggested in bug #175612, comment #4.