~ubuntu-branches/ubuntu/precise/wget/precise-proposed

« back to all changes in this revision

Viewing changes to src/res.c

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2011-10-19 00:00:09 UTC
  • mfrom: (2.1.13 sid)
  • Revision ID: james.westby@ubuntu.com-20111019000009-8p33w3wz4b1rdri0
Tags: 1.13-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add wget-udeb to ship wget.gnu as alternative to busybox wget
    implementation.
  - Depend on libssl-dev 0.9.8k-7ubuntu4 (LP: #503339)
* Dropped changes, superseded in Debian:
  - Keep build dependencies in main:
    + debian/control: remove info2man build-dep
    + debian/patches/series: disable wget-infopod_generated_manpage
  - Mark wget Multi-Arch: foreign, so packages that aren't of the same arch
    can depend on it.
* Pass --with-ssl=openssl; we don't want to use gnutls, there's no udeb for
  it.
* Add a second build pass for the udeb, so we can build without libidn.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Support for Robot Exclusion Standard (RES).
2
 
   Copyright (C) 2001, 2006, 2007, 2008, 2009 Free Software Foundation,
3
 
   Inc.
 
2
   Copyright (C) 2001, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
3
   Foundation, Inc.
4
4
 
5
5
This file is part of Wget.
6
6
 
283
283
      SKIP_SPACE (p);
284
284
      if (field_b == field_e || EOL (p) || *p != ':')
285
285
        {
286
 
          DEBUGP (("Ignoring malformed line %d", line_count));
 
286
          DEBUGP (("Ignoring malformed line %d\n", line_count));
287
287
          goto next;
288
288
        }
289
289
      ++p;                      /* skip ':' */
351
351
        }
352
352
      else
353
353
        {
354
 
          DEBUGP (("Ignoring unknown field at line %d", line_count));
 
354
          DEBUGP (("Ignoring unknown field at line %d\n", line_count));
355
355
          goto next;
356
356
        }
357
357
 
385
385
res_parse_from_file (const char *filename)
386
386
{
387
387
  struct robot_specs *specs;
388
 
  struct file_memory *fm = read_file (filename);
 
388
  struct file_memory *fm = wget_read_file (filename);
389
389
  if (!fm)
390
390
    {
391
391
      logprintf (LOG_NOTQUIET, _("Cannot open %s: %s"),
393
393
      return NULL;
394
394
    }
395
395
  specs = res_parse (fm->content, fm->length);
396
 
  read_file_free (fm);
 
396
  wget_read_file_free (fm);
397
397
  return specs;
398
398
}
399
399
 
552
552
  opt.timestamping = false;
553
553
  opt.spider       = false;
554
554
 
555
 
  url_parsed = url_parse (robots_url, &url_err, iri, true);
 
555
  url_parsed = url_parse (robots_url, &url_err, i, true);
556
556
  if (!url_parsed)
557
557
    {
558
558
      char *error = url_error (robots_url, url_err);