[cvsnt] taginfo ignoring exit status
Thorsten Lang
thorsten.lang at technotrend.de
Wed Sep 17 09:46:13 BST 2003
Hi everyone,
here is my little problem:
I recently configured CVSNT to deny certain kinds of tags in the repository
- or that's what I thought. Sadly CVS doesn't really care about my settings
in taginfo and continues to tag files with just about anything.
Here's the entry from taginfo:
ALL $CVSROOT/scripts/checkextendedtag.pl
That part seems to work, since CVS executes the script for every tag
operation. Now take a look at the script itself:
#!/usr/bin/perl
# checking tags for _xtaginfo substring at the end
# assign commandline parameters to appropriate variables
$tagname = shift;
$operation = shift;
$repository = shift; # not really needed right now, but anyway...
unless ($operation eq "add") { # only needed for new tags so
exit 0 # anything else gets exit 0
}
if ($tagname =~ m/\_xtaginfo$/) { # if a tag ends on _xtaginfo
exit 1 # signal CVS to abort tag
}
# end
The script works fine if I run it from the shell and it does return the
correct exit status. (I checked using "echo $?")
The problem is that CVS doesn't care about the script's exit status and
proceeds to tag anyway.
Is there something I may have overlooked - maybe some other configuration
file I have to alter?
Regards,
Thorsten
More information about the cvsnt
mailing list