small patch to fix the md5sums when searching for files
with spaces in their names

-Jesse
Index: helpers/lh_binary_md5sum
===================================================================
--- helpers/lh_binary_md5sum	(revision 2655)
+++ helpers/lh_binary_md5sum	(working copy)
@@ -54,7 +54,9 @@
 
 # Calculating md5sums
 cd binary
-find . -type f | sort | grep -v 'isolinux/isolinux.bin' | grep -v 'boot/grub/stage2_eltorito' | xargs md5sum > ../md5sum.txt
+find . -type f -print0 | sort -z | grep -z -v 'isolinux/isolinux.bin' \
+   | grep -z -v 'boot/grub/stage2_eltorito' \
+   | xargs -0 md5sum > ../md5sum.txt
 
 cat > md5sum.txt << EOF
 This file contains the list of md5 checksums of all files on this medium.
_______________________________________________
debian-live-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel

Reply via email to