Menu

#10 [PATCH] to INF.pm

open
nobody
None
5
2002-07-15
2002-07-15
No

It seams the trialing carriage return in the .inf files
were messing up my package build. Patch follows:

[root@elmo drivers]# diff -u /usr/local/src/imprints-
0.0.9b/packages/INF.pm INF.pm
--- /usr/local/src/imprints-0.0.9b/packages/INF.pm
Thu Aug 3 17:37:03 2000
+++ INF.pm Mon Jul 15 19:49:15 2002
@@ -172,6 +172,8 @@
# Remove trailing newline and leading whitespace.
chomp $line;
$line =~ s/^\s+//;
+ # and trailing carrage return (0x0d)
+ $line =~ s/\x0d//;

# Skip over blank lines and comments.
next if $line eq '';

Hope this helps,

Bill Shirley

Discussion


Log in to post a comment.

MongoDB Logo MongoDB