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

Bug 763213

Summary: emerge-fetch.log is not updated or touched when --fetchonly is used, but the doc doesn't say that.
Product: Portage Development Reporter: Adjudicator Darren <adjudicatordarren>
Component: DocumentationAssignee: Portage team <dev-portage>
Status: UNCONFIRMED ---    
Severity: minor    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Adjudicator Darren 2021-01-02 23:46:10 UTC
It's not at all clear that /var/log/emerge-fetch.log won't be updated/touched when emerge --fetchonly is used. Could the doc please say that ?
Meanwhile it is always updated when --fetchonly isn't used (even when no fetches were done) eg.
# cat /var/log/emerge-fetch.log
 * wget-1.21.tar.gz size ;-) ...                                         [ ok ]
 * smartmontools-7.2.tar.gz size ;-) ...                                 [ ok ]


man emerge shows:

--fetchonly, -f
       Instead  of doing any package building, just perform fetches for
       all packages (fetch things from SRC_URI based upon USE setting).

--fetch-all-uri, -F
       Instead of doing any package building, just perform fetches  for
       all packages (fetch everything in SRC_URI regardless of USE set‐
       ting).

/var/log/emerge-fetch.log
       Contains a log of all the fetches in the previous emerge invocation.


Reproducible: Always

Steps to Reproduce:
1. Run 'emerge --jobs=4 --load-average=4 --keep-going=n --usepkg=y --ask --ask-enter-invalid --binpkg-respect-use=y --binpkg-changed-deps=y --tree --deep --nospinner --backtrack=300 --with-bdeps=y --verbose --tree --deep --with-bdeps=y --changed-use --newuse --ask --complete-graph=y --changed-deps=y --update --usepkg=y --binpkg-respect-use=y --binpkg-changed-deps=y --nospinner --backtrack=300 @world --fetchonly'

Actual Results:  
/var/log/emerge-fetch.log is not even timestamp updated

Expected Results:  
the doc (man emerge) should say that /var/log/emerge-fetch.log isn't updated at all when --fetchonly is used.
OR
have /var/log/emerge-fetch.log be updated even when --fetchonly is used?

/var/log/emerge-fetch.log isn't updated because --fetchonly causes fetching to not happen in the background but instead it's all shown on console.

Didn't test --fetch-all-uri  , only --fetchonly