Re: pkg_add href regex

2017-08-03 Thread Vadim Zhukov
2017-08-04 0:37 GMT+03:00 Stuart Henderson : > CC'ing ports@ in case people miss this on bugs@. Quick summary from > earlier posts: some mirrors e.g. leaseweb, esc7, have directory listings > with , which pkg_add's parser can't handle. > > On 2017/08/03 20:44, Taylor Stearns

Re: pkg_add href regex

2017-08-03 Thread Stuart Henderson
CC'ing ports@ in case people miss this on bugs@. Quick summary from earlier posts: some mirrors e.g. leaseweb, esc7, have directory listings with , which pkg_add's parser can't handle. On 2017/08/03 20:44, Taylor Stearns wrote: > On Wed, Aug 02, 2017 at 11:41:52PM +0100, Stuart Henderson wrote: >

Re: pkg_add href regex

2017-08-03 Thread Taylor Stearns
On Wed, Aug 02, 2017 at 11:41:52PM +0100, Stuart Henderson wrote: > Please send a diff -u and don't indent it. Here is the CVS diff -u: Index: PackageRepository.pm === RCS file:

Re: pkg_add href regex

2017-08-02 Thread Stuart Henderson
Please send a diff -u and don't indent it. On 2017/08/02 21:06, Taylor Stearns wrote: > > The Perl scripts that scrape directory listings use a regex that > > searches until the end of the tag (">") instead of the end of the href. > > Changing them to look at just the href instead of the entire

Re: pkg_add href regex

2017-08-02 Thread Taylor Stearns
> The Perl scripts that scrape directory listings use a regex that > searches until the end of the tag (">") instead of the end of the href. > Changing them to look at just the href instead of the entire tag fixes > the problem, though I don't know enough of the history of why they were > made

pkg_add href regex

2017-08-02 Thread Taylor Stearns
Some OpenBSD mirrors don't seem to work with pkg_add because their directory listings have more attributes in their "a" tags than just "href". For example, at least these two mirrors throw errors: https://mirror.esc7.net/pub/OpenBSD https://mirror.leaseweb.com/pub/OpenBSD An example of the