Package: simple-cdd
Version: 0.3.13
Tags: patch

Hi,

the mirror-path on my debian-mirror is
  http://server/debian/squeeze/
instead of
  http://server/debian/

build-simple-cdd fails with:
...
Starting new i386 CD 1 at /home/ski/simple/tmp//cd-build/squeeze/CD1
  Adding the required directories
  Generating the image label and volume id
You need a Debian mirror with the doc directory!
    Failed to start disc 1, error 256
make: *** [image-trees] Fehler 9

The attached patch fixed it for me.

regards
Stefan

diff -uNrp simple-cdd-0.3.13.original/tools/mirror/wget simple-cdd-0.3.13/tools/mirror/wget
--- simple-cdd-0.3.13.original/tools/mirror/wget	2009-10-30 07:56:58.000000000 +0100
+++ simple-cdd-0.3.13/tools/mirror/wget	2010-07-22 17:06:02.755530632 +0200
@@ -6,5 +6,7 @@ for file in $mirror_files ; do
     sleep 1
 done
 
+cut_dirs=$(echo -n "$wget_debian_mirror" | sed -e 's:/$::' -e 's://::' -e 's:[^/]::g' | wc -m)
+
 # download files
-wget -c -N -nv --no-parent -nH --cut-dirs=1 -r $wget_file_list -P $MIRROR
+wget -c -N -nv --no-parent -nH --cut-dirs=$cut_dirs -r $wget_file_list -P $MIRROR

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to