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

Bug 821571

Summary: sys-apps/portage: ebuild manifest command does not resume partial download
Product: Portage Development Reporter: Zac Medico <zmedico>
Component: Core - Ebuild SupportAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: pacho
Priority: Normal Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=175612
https://github.com/gentoo/portage/pull/767
Whiteboard:
Package list:
Runtime testing required: ---

Description Zac Medico gentoo-dev 2021-11-04 04:10:47 UTC
If theres a partial download with the .__download__ suffix in ${DISTDIR}, then the ebuild manifest command will abort without trying to resume the download.
Comment 1 Larry the Git Cow gentoo-dev 2021-11-08 22:37:42 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=776ede149514db41c9c08276594b43b2682ba1a4

commit 776ede149514db41c9c08276594b43b2682ba1a4
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2021-11-05 04:08:19 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2021-11-05 04:22:48 +0000

    fetch: enable resume for digestgen case
    
    Enable resume for the digestgen case (no digests available), when
    the temporary file exceeds PORTAGE_FETCH_RESUME_MIN_SIZE. This
    fixes a case which caused the ebuild digest command to skip the
    download and fail with a message like this:
    
    !!! File b'/var/cache/distfiles/foo.tar.xz' doesn't exist, can't update Manifest
    
    Bug: https://bugs.gentoo.org/821571
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 lib/portage/package/ebuild/fetch.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)