Package: apt-file
Version: 2.0.8.2
Severity: wishlist
Tags: patch

debtorrent: support can be added by inserting the following line into
/etc/apt/apt-file.conf:
======================================================================
debtorrent = curl -L -I 
"http://<host>:<port|9988><path>/dists/<dist>/Contents-<arch>.gz" 2>&1 | grep 
'^HTTP.*404' > /dev/null || (curl -L -z "<cache>/<dest>" -R -o 
"<cache>/<dest>_tmp"  
"http://<host>:<port|9988><path>/dists/<dist>/Contents-<arch>.gz" >/dev/null 
2>&1 && (mv "<cache>/<dest>_tmp" "<cache>/<dest>" 2>&1 && chmod 644 
"<cache>/<dest>") || (rm -f "<cache>/<dest>_tmp"; echo "Can't get 
http://<host>:<port|9988><path>/dists/<dist>/Contents-<arch>.gz"))
======================================================================

I'm not quiet sure what's the default port for debtorrent, debtorrents
README always lists it explicitly as 9988.

Thanks,
Jö.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing-proposed-updates
  APT policy: (500, 'testing-proposed-updates'), (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-3-686 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages apt-file depends on:
ii  curl                          7.17.1-1   Get a file from an HTTP, HTTPS or 
ii  gzip                          1.3.12-4   The GNU compression utility
ii  libapt-pkg-perl               0.1.21+b2  Perl interface to libapt-pkg
ii  libconfig-file-perl           1.41-1     Parses simple configuration files
ii  perl                          5.8.8-12   Larry Wall's Practical Extraction 
ii  wget                          1.10.2-3   retrieves files from the web

apt-file recommends no packages.

-- no debconf information

-- 
A programmer is a device to turn coffee and pizza into bugs.

Attachment: signature.asc
Description: Digital signature

Reply via email to