Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 588442 - sys-apps/portage-2.3.0: wait for another emerge processes to end before recording Manifest
Summary: sys-apps/portage-2.3.0: wait for another emerge processes to end before recor...
Status: RESOLVED OBSOLETE
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Repoman (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 377365
  Show dependency tree
 
Reported: 2016-07-09 15:01 UTC by Pacho Ramos
Modified: 2022-10-20 01:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.