~ubuntu-branches/ubuntu/trusty/apt-cacher/trusty-proposed

« back to all changes in this revision

Viewing changes to apt-cacher-cleanup.pl

  • Committer: Package Import Robot
  • Author(s): Mark Hindley
  • Date: 2013-10-21 16:42:46 UTC
  • Revision ID: package-import@ubuntu.com-20131021164246-udd8ztu0d9t9av9k
Tags: 1.7.8
* Use sed to insert version number when building, therefore no need
  to Build-Depend on perl any more.  
* Only write body to cached file on success (200).
* Rework handling of If-Modified request response. Client errors also
  count as EXPIRED. Delete cached files in these circumstances (closes:
  #708884). 
* return_file() never returns a retry code, so don't test for it.
* Update debian/control file description. Integrate experimental features
  (multi-distro, Debian Bugs SOAP and HTTPS CONNECT) as established.
* Add Ubuntu 14.04 codename 'Trusty'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
393
393
    fcntl($tfh, F_SETFD, 0)
394
394
      or die "Can't clear close-on-exec flag on temp filehandle: $!\n";
395
395
    my $cwd = Cwd::cwd(); # Save
396
 
    chdir '/dev/fd' or  die "Unable to change working directory: $!";
 
396
    chdir '/proc/self/fd' or  die "Unable to change working directory: $!";
397
397
    open(my $patchpipe, '|-', "$patchprog ".fileno($tfh)) ||  die "Unable to open pipe for patch: $!";
398
398
    printmsg "Patching $name with $patchprog\n";
399
399
    print $patchpipe $diffs;