Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 315243 - app-portage/repoman: Repoman should HEAD the provided SRC_URI
Summary: app-portage/repoman: Repoman should HEAD the provided SRC_URI
Status: RESOLVED DUPLICATE of bug 295335
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Repoman (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
Depends on: 295335
  Show dependency tree
Reported: 2010-04-14 10:10 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2018-02-04 12:59 UTC (History)
6 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2010-04-14 10:10:09 UTC
Since it's quite possible to forget to upload a file, or to have the file fetched manually, and fail to update SRC_URI accordingly, it would be nice for repoman (with a fuller, network-based scan) to be able to check that the file is indeed there.

Downloading the file might be too much (if the file is huge that's baaad), but at least HEAD it (and maybe check whether the size corresponds to what is saved in the Manifest, if provided) would be a good idea, no?

Thanks ;)
Comment 1 SpanKY gentoo-dev 2010-04-19 23:35:30 UTC
i dont think `HEAD` follows redirects (3xx) ?
Comment 2 SpanKY gentoo-dev 2010-04-19 23:37:06 UTC
also, we already have FEATURES that control the d/ling of files -- assume-digests.  this is specifically designed to avoid having to d/l files even some of the time let alone your proposal of d/ling the files *every* time.  i cant see that ever really being useful.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-04-19 23:56:06 UTC
HEAD returns a redirect, you have to follow through a 3xx request and HEAD the further location until you get either 4xx, 500 or 2xx.

And I'm *definitely* not suggesting to download it every time; I'm suggesting we check it's there without full download (what HEAD is for).
Comment 4 Markos Chandras (RETIRED) gentoo-dev 2010-10-20 23:17:51 UTC
ping. I agree with Diegos' latest comment
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-02-04 12:59:42 UTC

*** This bug has been marked as a duplicate of bug 295335 ***