[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#729222: marked as done (debian-cd: please add HTTP/web seeds to the torrents)



Your message dated Tue, 26 Nov 2013 01:53:41 +0000
with message-id <20131126015335.GV6577@einval.com>
and subject line Re: Bug#729222: debian-cd: please add HTTP/web seeds to the torrents
has caused the Debian Bug report #729222,
regarding debian-cd: please add HTTP/web seeds to the torrents
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
729222: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=729222
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: debian-cd
Severity: wishlist

Inspired by [1] I went to check if Debian's torrent files have web seeds
in them but it doesn't look like they do. I'm guessing that debian-cd
uses the bittorrent package to create .torrent files, unfortunately this
does not seem to support web seeds. There is, however, a fork of
bittorrent called bittornado that supports web seeds. My naive untested
patch to add support for this to debian-cd is below. Thoughts?

     1. http://cynic.cc/blog//posts/2013-10-18-bittorrent_with_webseed/

--- contrib/mktorrent	(revision 2572)
+++ contrib/mktorrent	(working copy)
@@ -1,14 +1,16 @@
 #!/bin/sh
 
 for FILE in $@; do
-    MKTORRENT=/home/debian-cd/bt/btmakemetafile.py
+    MKTORRENT=btmakemetafile.bittornado
     ISODIR=`dirname $FILE`
     BTDIR=`echo $ISODIR | sed 's/iso-/bt-/;s/usb-/bt-/'`
     if [ ! -d $BTDIR ] ; then
         mkdir -p $BTDIR
     fi
+    HTTPSEEDS=$(echo $FILE | sed -n 's_[^/]\+/debian-\([^-]\+\)-\([^-]\+\)-_--httpseeds http://cdimage.debian.org/debian-cd/\1/\2/\0_p')
     $MKTORRENT http://bttracker.debian.org:6969/announce \
         --comment '"Debian CD from cdimage.debian.org"' \
+        $HTTPSEEDS \
         $FILE | grep -v complete
     mv $FILE.torrent $BTDIR
 done

-- 
bye,
pabs

http://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---
--- Begin Message ---
On Sun, Nov 10, 2013 at 09:53:09PM +0800, Paul Wise wrote:
>Package: debian-cd
>Severity: wishlist
>
>Inspired by [1] I went to check if Debian's torrent files have web seeds
>in them but it doesn't look like they do. I'm guessing that debian-cd
>uses the bittorrent package to create .torrent files, unfortunately this
>does not seem to support web seeds. There is, however, a fork of
>bittorrent called bittornado that supports web seeds. My naive untested
>patch to add support for this to debian-cd is below. Thoughts?

Thanks for the patch. I've extended it slightly to add support for 2
different locations for the seeds, and committed it now so pettersson
builds will use the new code.

-- 
Steve McIntyre, Cambridge, UK.                                steve@einval.com
"I can't ever sleep on planes ... call it irrational if you like, but I'm
 afraid I'll miss my stop" -- Vivek Dasmohapatra

--- End Message ---

Reply to: