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

Bug#441397: Support for readonly mirrors



Package: debian-cd
Severity: normal
Tags: patch

This patch fixes build when mirror dir is mounted readonly.  Files are
exposed without write perms, and when copied to the target directory, these
perms are preserved by cp.  So you need to remove them before attempting to
replace them.

-- System Information:
Debian Release: lenny/sid
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-5-amd64
Locale: LANG=ca_AD.UTF-8, LC_CTYPE=ca_AD.UTF-8 (charmap=UTF-8)
Index: tools/add-bin-doc
===================================================================
--- tools/add-bin-doc	(revision 1459)
+++ tools/add-bin-doc	(working copy)
@@ -34,6 +34,7 @@
 	$dir/README.CD-manufacture $dir/README.multicd \
 	$dir/README.pgp $dir/README.non-US ; \
 
+rm -f $dir/README.html
 cpp -traditional -undef -P -C -Wall -nostdinc -I$dir \
     -D COMPLETE="$COMPLETE" \
     -D OMIT_MANUAL="$OMIT_MANUAL" \
@@ -42,6 +43,7 @@
     -D OUTPUTtext $BASEDIR/data/$CODENAME/README.html.in \
 	| sed -e 's/%%.//g' > $dir/README.html
 
+rm -f $dir/README.txt
 lynx -dump -force_html $dir/README.html | todos \
 > $dir/README.txt ; \
 

Reply to: