[cvsnt] taginfo ignoring exit status [UPDATE]

Thorsten Lang thorsten.lang at technotrend.de
Wed Sep 17 11:56:24 BST 2003


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


A little but maybe important detail I forgot to mention earlier:

I'm running CVSNT 2.0.8 on a Linux machine and access the repository via
WinCVS & SSH. btw. the problem persists if I open a shell and send the cvs
command directly.

Thorsten


-----Original Message-----
From: Thorsten Lang 
Sent: Wednesday, September 17, 2003 10:46 AM
To: 'CVSNT Mailing List (cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook)'
Subject: taginfo ignoring exit status


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
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook