Please send pull requests through GitHub :-) Thanks!
On Fri, Apr 17, 2015 at 12:00 PM, Ge@@ru <gea...@gmail.com> wrote: > I found some issues on my patch. > > In attachment a new version. > > I currently add a workaround for multifetch class but is horrible. > I think that for handle correctly basic authentication and https > validation check repository syntax file must be changed. > > If are present multples pkg rows, basic authentication is used for all > but I don't know if could be correct. > Probably yes, because are mirror of same repository but it also true > that a syntax like this could be more efficient: > > [geaaru-repos] > pkg = { url: ' https://sabayon.mydomain.it/geaaru/',username: 'xx', > password: 'zz', https_validate_cert: false } > > My cent. > > Bye > > On Thu, 2015-04-16 at 13:32 +0200, Ge@@ru wrote: >> Hi guys, >> >> I create a patch for permit configuration of basic authentication >> for >> remote repository and disable ssl certificate validation and permit >> use of repository with self-signed certificate. >> >> So, under repositories.conf.d directory a file could be in this >> format: >> >> [geaaru-repos] >> desc = Entropy Server of Geaaru >> repo = https://sabayon.mydomain.it/geaaru/ >> pkg = https://sabayon.mydomain.it/geaaru/ >> enabled = true >> username = user0 >> password = pwd0 >> https_validate_cert = false >> >> Parameters username and password are used currently on HTTP/HTTPS >> server. >> >> An alternative to my implementation for Basic authentication is to >> parse url string for '@' or other, but I prefer a single parameter. >> >> Patch is also available on my overlay: >> https://github.com/geaaru/geaaru_overlay/tree/master/sys-apps/entropy >> >> I'm waiting for a feedback. >> >> Thanks >> >> Bye >> Geaaru > > > -- Fabio Erculiani