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

[PATCH] Exclude directories from any root filesystem

On Wednesday 24 October 2007, Otavio Salvador wrote:
> Maarten ter Huurne <maarten at treewalker.org> writes:
> > It treats any whitespace in the exclusion file as a separator, which
> > means means it's impossible to exclude a file or directory that
> > contains a space in its name. I don't think any Debian package uses
> > spaces in file names, so I guess this is not a problem.
> To work around your problem you can use something like (untested):
> while read line
> do
>         ...
> done < EXCLUDE
> It should work fine.

The "while" construct indeed leaves the spaces in tact during iteration. 
However, when using the variable that contains a space, a lot of things can 
go wrong. I think I've found a reasonable solution now, it is in the 
attached patch. Please review it.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: generic-exclude-2.diff
Type: text/x-diff
Size: 778 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/debian-live-devel/attachments/20071025/e17f1549/attachment-0001.diff 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.alioth.debian.org/pipermail/debian-live-devel/attachments/20071025/e17f1549/attachment-0001.pgp 

Reply to: