diff options
author | Anssi Hannula <anssi@mandriva.org> | 2007-06-24 20:15:34 +0000 |
---|---|---|
committer | Anssi Hannula <anssi@mandriva.org> | 2007-06-24 20:15:34 +0000 |
commit | 950df73f5a66ba95b57a9f752d76d649cbeb7fb1 (patch) | |
tree | 11903e91063c9e0b97c64a86fa3d8de5cc1ef4b2 | |
parent | 0805449c422c3146279711146db8174832970732 (diff) | |
download | spec-helper-950df73f5a66ba95b57a9f752d76d649cbeb7fb1.tar spec-helper-950df73f5a66ba95b57a9f752d76d649cbeb7fb1.tar.gz spec-helper-950df73f5a66ba95b57a9f752d76d649cbeb7fb1.tar.bz2 spec-helper-950df73f5a66ba95b57a9f752d76d649cbeb7fb1.tar.xz spec-helper-950df73f5a66ba95b57a9f752d76d649cbeb7fb1.zip |
Add missing parantheses to fix-eol script. Instead of converting
EOL it was corrupting the files
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | fix-eol | 2 |
3 files changed, 5 insertions, 2 deletions
@@ -1,3 +1,6 @@ +2007-06-24 Anssi Hannula <anssi@mandriva.org> 0.26 + * fix fix-eol to not break files it tries to convert + 2007-06-15 Guillaume Rousse <guillomovitch@mandriva.org> 0.25 * switch to a manual Changelog * new helper script: fix-eol @@ -1,5 +1,5 @@ PACKAGE = spec-helper -VERSION = 0.25 +VERSION = 0.26 SVNPATH = svn+ssh://svn.mandriva.com/svn/soft/rpm/$(PACKAGE) SCRIPT_FILES = spec-helper clean_files clean_perl compress_files strip_files \ @@ -33,7 +33,7 @@ sub convert { # process all file my $out = File::Temp->new(DIR => '.', UNLINK => 0); print $out $line; - while ($line = <$in> && defined $line) { + while (($line = <$in>) && defined $line) { $line =~ s/\r\n$/\n/; print $out $line; } |