Package: debtorrent
Version: 0.1.9
Severity: normal

Attempted to access the Coda repository via debtorrent, this is the entry in sources.list:

deb     debtorrent://farrago:9988/www.coda.cs.cmu.edu/debian stable/
deb-src http://farrago:3142/coda stable/

The debtorrent-client.log contains this exception when attempting to add a torrent for that url:

2009-06-27 22:38:23,117 MainThread DebTorrent.HTTPHandler INFO 8: DEBTORRENT GET /www.coda.cs.cmu.edu/debian/stable/Packages.gz DEBTORRENT/0.2 2009-06-27 22:38:23,117 MainThread DebTorrent.HTTPCache INFO cache miss: /var/cache/debtorrent/www.coda.cs.cmu.edu/debian/stable/Packages.gz 2009-06-27 22:38:25,034 MainThread DebTorrent.HTTPCache INFO download completed for: http://www.coda.cs.cmu.edu/debian/stable/Packages.gz 2009-06-27 22:38:25,035 MainThread DebTorrent.HTTPHandler INFO sending response: DEBTORRENT 200 OK (4683 bytes){'last-modified': 'Mon, 05 Jan 2009 22:48:56 GMT', 'content-type': 'application/x-gzip', 'Server': 'DebTorrent/T-0.1.9'} 2009-06-27 22:38:25,052 TorrentCreator(www.coda.cs.cmu.edu_debian_stable) DebTorrent.BT1.makemetafile INFO got metainfo for torrent of 27 pieces for 27 files 2009-06-27 22:38:26,629 MainThread DebTorrent.RawServer ERROR RawServer exception occurred
Traceback (most recent call last):
File "/var/lib/python-support/python2.5/DebTorrent/RawServer.py", line 328, in listen_forever
    func()
File "/var/lib/python-support/python2.5/DebTorrent/BT1/makemetafile.py", line 908, in _finished
    self.callback(response, name, self.path)
File "/var/lib/python-support/python2.5/DebTorrent/BT1/AptListener.py", line 656, in start_torrent
    for i in path[1:path.index('dists')]:
ValueError: list.index(x): x not in list

Looking at the code, it appears to assume that all package repositories are 'automatic' repositories, ie. include 'dists' in the url.

The error occurs in deriving the value of 'mirror' from the url. Would a valid derivation be to take either everthing up to 'dists', assuming an automatic repository, or failing that, to take everything up to and including the final '/'?

In this case, mirror would then end up being:

http://www.coda.cs.cmu.edu/debian/stable/ Packages.gz

as opposed to the mirror url if the site were an 'automatic' repository of:

http://www.coda.cs.cmu.edu/debian/ dists/stable/binary-i386/Packages.gz


-- System Information:
Debian Release: 5.0.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-xen-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages debtorrent depends on:
ii  adduser                     3.110        add and remove users and groups
ii  python                      2.5.2-3      An interactive high-level object-o
ii  python-apt                  0.7.7.1+nmu1 Python interface to libapt-pkg
ii  python-debian               0.1.10       Python modules to work with Debian
ii  python-support              0.8.4        automated rebuilding support for P

Versions of packages debtorrent recommends:
ii  apt-transport-deb 0.2.1                  an APT transport for communicating
ii  python-crypto     2.0.1+dfsg1-2.3+lenny0 cryptographic algorithms and proto

Versions of packages debtorrent suggests:
pn  python-psyco                  <none>     (no description available)

-- no debconf information



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to