aboutsummaryrefslogtreecommitdiffstats
path: root/CVSROOT
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2001-09-02 08:44:49 +0800
committerjoe <joe@FreeBSD.org>2001-09-02 08:44:49 +0800
commitde470f9cc36a343b0f851a363f5b2a6225a09a69 (patch)
treeb183206aab12b15d1946dfc3898b5521bf31b92d /CVSROOT
parenta9dbf40821bb64cf0ef4390d2aa0920f76e7800b (diff)
downloadfreebsd-ports-gnome-de470f9cc36a343b0f851a363f5b2a6225a09a69.tar.gz
freebsd-ports-gnome-de470f9cc36a343b0f851a363f5b2a6225a09a69.tar.zst
freebsd-ports-gnome-de470f9cc36a343b0f851a363f5b2a6225a09a69.zip
Revisit the commit in rev 1.36. In acual fact the whole version
hash doesn't need to be passed, just the version of the current file.
Diffstat (limited to 'CVSROOT')
-rwxr-xr-xCVSROOT/commit_prep.pl10
1 files changed, 5 insertions, 5 deletions
diff --git a/CVSROOT/commit_prep.pl b/CVSROOT/commit_prep.pl
index ebd3013efeb4..5967d7b42645 100755
--- a/CVSROOT/commit_prep.pl
+++ b/CVSROOT/commit_prep.pl
@@ -101,7 +101,7 @@ sub check_version {
my $filename = shift;
my $directory = shift;
my $hastag = shift;
- my %versions = @_;
+ my $lastversion = shift;
my $bareid;
my $exclude;
@@ -157,7 +157,7 @@ sub check_version {
return (0);
}
($id, $rname, $version) = split(' ', substr($line, $pos));
- if ($versions{$filename} eq '0') {
+ if ($lastversion eq '0') {
if (!$bareid) {
printf($NoName, $filename);
return(1);
@@ -185,8 +185,8 @@ sub check_version {
return(1);
}
}
- if ($versions{$filename} ne $version) {
- printf($BadVersion, $filename, $versions{$filename},
+ if ($lastversion ne $version) {
+ printf($BadVersion, $filename, $lastversion,
$version, $filename);
return(1);
}
@@ -254,7 +254,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{$arg});
}
if ($failed) {
print "\n";