aboutsummaryrefslogtreecommitdiffstats
path: root/CVSROOT
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2001-08-31 06:21:06 +0800
committerjoe <joe@FreeBSD.org>2001-08-31 06:21:06 +0800
commita5348aaa8c57747da0bb4af60050bfb21b40eb98 (patch)
tree983fd5680a985c8f79484ce24c8de78623246bed /CVSROOT
parent4e6301390426edbd548d4ea2bd607dd612992f5d (diff)
downloadfreebsd-ports-gnome-a5348aaa8c57747da0bb4af60050bfb21b40eb98.tar.gz
freebsd-ports-gnome-a5348aaa8c57747da0bb4af60050bfb21b40eb98.tar.zst
freebsd-ports-gnome-a5348aaa8c57747da0bb4af60050bfb21b40eb98.zip
Fix a long standing bug from rev 1.7. The %cvsversion hash wasn't being
passed to &check_version, it was being used as a global. What _was_ being passed was a scalar $cvsversion, brought into existence at that moment.
Diffstat (limited to 'CVSROOT')
-rwxr-xr-xCVSROOT/commit_prep.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/CVSROOT/commit_prep.pl b/CVSROOT/commit_prep.pl
index be8105430b20..5b7810b80992 100755
--- a/CVSROOT/commit_prep.pl
+++ b/CVSROOT/commit_prep.pl
@@ -97,7 +97,7 @@ sub write_line {
sub check_version {
local($id, $rname, $version, $bareid, $exclude, $path);
- local($filename, $directory, $hastag, $cvsversion) = @_;
+ local($filename, $directory, $hastag, %cvsversion) = @_;
if (! -f $filename) {
return(0); # not present - either removed or let
@@ -245,7 +245,7 @@ if ($check_id != 0) {
next if ($check_id == 2 && $arg ne "Makefile");
next if ($check_id == 3 && $hastag);
$failed += &check_version($arg, $directory, $hastag,
- $cvsversion);
+ %cvsversion);
}
if ($failed) {
print "\n";