Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 542342 - app-portage/layman: Please add option --http-only
Summary: app-portage/layman: Please add option --http-only
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Layman Overlay Manager project
URL: https://forums.gentoo.org/viewtopic-t...
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2015-03-06 10:09 UTC by Massimo Burcheri
Modified: 2016-06-13 07:48 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 Massimo Burcheri 2015-03-06 10:09:51 UTC
Hi, having some https:// fallbacks as fallback for the git:// in repositories.xml, it would be useful to set

-w, --http-only
      Only use http(s) mirrors for repositories, failing if there is no http mirror available.

In http-proxied environments git:// mirrors will always fail, the timeout falling back to other sources takes long. However I'm able to switch to the next source using CTRL+C. This is unusual because it is not closing the layman process but killing only the current git clone.
Anyway having this -w or some similar option would be fine. I thought of -w because eix is already using -w for webrsync (-W for delta-webrsync).

Reproducible: Always
Comment 1 Brian Dolbec (RETIRED) gentoo-dev 2015-03-06 14:15:26 UTC
We'll look at adding that capability to layman.  Perhaps even make it an option the layman.cfg so it does not need to be on the command line each time.
Comment 2 Devan Franchini (RETIRED) gentoo-dev 2015-03-26 23:17:02 UTC
This functionality has been added in the form of the "--protocol_order"* which will filter the protocols when adding an overlay or updating its URL.

It can be passed as a command-line option, or a configuration option and when set will allow layman to ONLY use those protocols when adding an overlay or updating its URL.

*name tentative and subject to change.

I welcome you to test it out in the 9999 version and please let me know if I missed any bugs.

Thank you!
Comment 3 Massimo Burcheri 2015-03-27 07:56:26 UTC
As accepting only one kind of protocol is usually a system-wide static decision for restricted environments, I would agree with Brian to prefer a configuration option instead of command line parameter.

Next issue with -9999 versions in general is the same here failing with git://git.overlays.gentoo.org/proj/layman.git, but that's a different issue. Is this a decision per ebuild and can we have a http:// mirror of the repo here as well?
Comment 4 Brian Dolbec (RETIRED) gentoo-dev 2015-03-27 14:37:48 UTC
He's renamed it to protocol_filter, and yes, it a layman.cfg option, not just a cli option.

Yes, you can change the url to an http one.  Now that the new anonymous git server is back up, these are offered from Gentoo:

git://anongit.gentoo.org/proj/layman.git
http://anongit.gentoo.org/git/proj/layman.git

Member only access, and not delayed:
git+ssh://git@git.gentoo.org/proj/layman.git  


And from the layman mirror on github:

git@github.com:gentoo/layman.git
https://github.com/gentoo/layman.git
https://github.com/gentoo/layman  <== svn


We'll look at adding as many of the urls as possible to the ebuild.
But you can substitute any of them in a copy of the ebuild in a local overlay.
Comment 5 Devan Franchini (RETIRED) gentoo-dev 2016-05-10 04:45:54 UTC
2.4.1 is out which resolves this issue, therefore, I'm resolving the bug.
Comment 6 Massimo Burcheri 2016-06-13 05:58:39 UTC
Thanks, working. Where are new URLs or bugfixes for the remote list of overlays submitted?
Comment 7 Brian Dolbec (RETIRED) gentoo-dev 2016-06-13 07:48:24 UTC
Here in bugzilla.  Uour suppose to tag the subject with [Overlays] or something like that.  You should check the wiki, the pages have changed recently, to get the latest instructions.