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
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.
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!
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?
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.
2.4.1 is out which resolves this issue, therefore, I'm resolving the bug.
Thanks, working. Where are new URLs or bugfixes for the remote list of overlays submitted?
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.