summaryrefslogtreecommitdiffstats
path: root/CVSROOT
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-09-19 09:58:53 +0000
committerpeter <peter@FreeBSD.org>1999-09-19 09:58:53 +0000
commitcd273c5d202f0339dd5d98c1be7b58bca3ea08d9 (patch)
tree289bd68707b0ec725869ed0aeb25011460878c8e /CVSROOT
parentfd818b0a99e8459dde42c5287e2cd43976b93b2b (diff)
downloadFreeBSD-ports-cd273c5d202f0339dd5d98c1be7b58bca3ea08d9.zip
FreeBSD-ports-cd273c5d202f0339dd5d98c1be7b58bca3ea08d9.tar.gz
If a file is missing, don't try and check it's id stamps. It's either been
cvs rm'ed, or cvs itself will detect the error if it's really missing.
Diffstat (limited to 'CVSROOT')
-rwxr-xr-xCVSROOT/commit_prep.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/CVSROOT/commit_prep.pl b/CVSROOT/commit_prep.pl
index 4966e3b..cb70518 100755
--- a/CVSROOT/commit_prep.pl
+++ b/CVSROOT/commit_prep.pl
@@ -88,6 +88,9 @@ sub check_version {
local($id, $rname, $version, $bareid);
local($filename, $directory, $hastag, $cvsversion) = @_;
+ if (! -f $filename) {
+ return(0); # not present - either removed or let cvs deal with it.
+ }
open(FILE, $filename) || die("Cannot open $filename, stopped");
# requiring the header within the first 'n' lines isn't useful.
while (1) {
OpenPOWER on IntegriCloud