Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 343863 - app-portage/repoman: manifest tries to download stuff from mirrors even when RESTRICT="mirror" is set
Summary: app-portage/repoman: manifest tries to download stuff from mirrors even when ...
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Repoman (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 377365
  Show dependency tree
 
Reported: 2010-11-02 16:15 UTC by Cyprien Nicolas (fulax)
Modified: 2022-07-12 03:18 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 Cyprien Nicolas (fulax) 2010-11-02 16:15:34 UTC
The title says it all. ebuild manifest respects RESTRICT="mirror".

I try all 2.2 portage versions available, all portage-2.2.0_alpha are affected, but portage-2.2_rc67 is not.

I can attach a sample shell session and/or emerge --info, but I don't think it would be useful/relevant. Please ask if one or the other is needed.
Comment 1 Zac Medico gentoo-dev 2010-11-02 16:22:17 UTC
If the file is required to create the manifest, then wouldn't you expect it to download the file automatically when possible? In that case, shouldn't we fix ebuild manifest to download the files when necessary?
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-11-02 16:23:42 UTC
BTW I think repoman may be even supposed to not use mirrors in any case. I guess it's mostly supposed to do initial Manifests, and in this case the file is obviously not on the mirrors. Or remanifests, where it is better to check whether the mirrors haven't diverged.
Comment 3 Cyprien Nicolas (fulax) 2010-11-02 16:26:43 UTC
I think the title was not clear at all, reformulated.

(In reply to comment #1)
> If the file is required to create the manifest, then wouldn't you expect it to
> download the file automatically when possible? In that case, shouldn't we fix
> ebuild manifest to download the files when necessary?

Yes, but not from mirrors, as there are specific sources specified in SRC_URI.

Comment 4 Zac Medico gentoo-dev 2010-11-03 15:15:54 UTC
(In reply to comment #2)
> BTW I think repoman may be even supposed to not use mirrors in any case. I
> guess it's mostly supposed to do initial Manifests, and in this case the file
> is obviously not on the mirrors. Or remanifests, where it is better to check
> whether the mirrors haven't diverged.

Yeah, I guess it makes sense to automatically trigger behavior like RESTRICT="primaryuri" in this case.


(In reply to comment #3)
> Yes, but not from mirrors, as there are specific sources specified in SRC_URI.

Right, it's even more desirable to avoid trying to fetch from mirrors when RESTRICT=mirror is set.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-12 03:18:35 UTC
repoman support has been removed per bug 835013.

Please file a new bug (or, I suppose, reopen this one) if you feel this check is still applicable to pkgcheck and doesn't already exist.