> 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 this way to say whether this is the right solution:
> (diffs against -current)

Sorry, the line numbers in the original diffs were mis-copied.
Should be:

  # pkg_add/OpenBSD/PackageRepository.pm
  915c915
  <               for my $pkg (m/\<A\s+HREF=\"(.*?\.tgz)\"\>/gio) {
  ---
  >               for my $pkg (m/\<A\s+HREF=\"(.*?\.tgz)\"/gio) {

  # pkg_add/OpenBSD/PackageRepository/HTTP.pm
  283c283
  <       for my $pkg ($r =~ m/\<A\s+HREF=\"(.+?)\.tgz\"\>/gio) {
  ---
  >       for my $pkg ($r =~ m/\<A\s+HREF=\"(.+?)\.tgz\"/gio) {

Reply via email to