diff options
author | Guillaume Rousse <guillomovitch@mandriva.org> | 2008-05-14 08:31:58 +0000 |
---|---|---|
committer | Guillaume Rousse <guillomovitch@mandriva.org> | 2008-05-14 08:31:58 +0000 |
commit | 321615496399b91185ec4e4c391e01e45c8afac0 (patch) | |
tree | df95185628fce3e62424c06e035ccccb7a7ff873 /fix_eol | |
parent | bc37609ac617acccef65987381c32a5e673eae20 (diff) | |
download | spec-helper-321615496399b91185ec4e4c391e01e45c8afac0.tar spec-helper-321615496399b91185ec4e4c391e01e45c8afac0.tar.gz spec-helper-321615496399b91185ec4e4c391e01e45c8afac0.tar.bz2 spec-helper-321615496399b91185ec4e4c391e01e45c8afac0.tar.xz spec-helper-321615496399b91185ec4e4c391e01e45c8afac0.zip |
change strategy when recursing files from accepting everything but some exceptions to rejecting everything but files, for more robustness
Diffstat (limited to 'fix_eol')
-rwxr-xr-x | fix_eol | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -23,10 +23,8 @@ $exclude_pattern = qr/$exclude_pattern/; find(\&convert, $buildroot); sub convert { - # skip symlinks - return if -l $_; - # skip directories - return if -d $_; + # skip everything but files + return unless -f $_; # skip binary files return unless -T $_; # skip excluded files |