Skip Menu |

This queue is for tickets about the VCS-Lite CPAN distribution.

Report information
The Basics
Id: 12009
Status: resolved
Priority: 0/
Queue: VCS-Lite

People
Owner: Nobody in particular
Requestors: dom [...] earth.li
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.06
Fixed in: (no value)



Subject: vlpatch and vldiff have syntax erorrs
dom@callisto:/tmp/VCS-Lite-0.06/scripts$ perl ./vldiff.pl syntax error at ./vldiff.pl line 39, near "/(\d+)/ {" Execution of ./vldiff.pl aborted due to compilation errors. dom@callisto:/tmp/VCS-Lite-0.06/scripts$ perl ./vlpatch.pl Missing comma after first argument to rename function at ./vlpatch.pl line 35, near ""$orig.orig";" Execution of ./vlpatch.pl aborted due to compilation errors. Patch attached.
--- /tmp/VCS-Lite-0.06/scripts/vldiff.pl 2004-12-29 08:48:06.000000000 +0000 +++ scripts/vldiff.pl 2005-03-26 14:23:10.000000000 +0000 @@ -36,7 +36,7 @@ if ($wintxt =~ /(\d+),(\d+)/) { $win = [$1,$2]; } -elsif ($wintxt =~ /(\d+)/ { +elsif ($wintxt =~ /(\d+)/) { $win = $1; } --- /tmp/VCS-Lite-0.06/scripts/vlpatch.pl 2003-04-20 07:54:54.000000000 +0100 +++ scripts/vlpatch.pl 2005-03-26 14:22:30.000000000 +0000 @@ -32,7 +32,7 @@ my $chg = $el1->patch($dt1) or die "Patch failed"; if (!$output) { - rename $orig "$orig.orig"; + rename $orig, "$orig.orig"; $output = $orig; }
[DOM - Sat Mar 26 09:33:13 2005]: Show quoted text
> dom@callisto:/tmp/VCS-Lite-0.06/scripts$ perl ./vldiff.pl > syntax error at ./vldiff.pl line 39, near "/(\d+)/ {" > Execution of ./vldiff.pl aborted due to compilation errors. > > dom@callisto:/tmp/VCS-Lite-0.06/scripts$ perl ./vlpatch.pl > Missing comma after first argument to rename function at ./vlpatch.pl > line 35, near ""$orig.orig";" > Execution of ./vlpatch.pl aborted due to compilation errors. > > Patch attached.
Thanks for pointing this out. The scripts will be fixed in the next release.