Index: ossp-pkg/shiela/ChangeLog RCS File: /v/ossp/cvs/ossp-pkg/shiela/ChangeLog,v rcsdiff -q -kk '-r1.13' '-r1.14' -u '/v/ossp/cvs/ossp-pkg/shiela/ChangeLog,v' 2>/dev/null --- ChangeLog 2002/12/21 09:42:57 1.13 +++ ChangeLog 2002/12/21 09:53:16 1.14 @@ -11,6 +11,10 @@ Changes between 0.9.2 and 0.9.3 (19-Aug-2002 to 21-Dec-2002): + *) Correctly determine CVS version and optional RSE patches (from + OpenPKG "cvs" package). + [Ralf S. Engelschall] + *) Upgraded to GNU shtool 1.6.2 and GNU autoconf 2.57. [Ralf S. Engelschall] Index: ossp-pkg/shiela/shiela.pl RCS File: /v/ossp/cvs/ossp-pkg/shiela/shiela.pl,v rcsdiff -q -kk '-r1.18' '-r1.19' -u '/v/ossp/cvs/ossp-pkg/shiela/shiela.pl,v' 2>/dev/null --- shiela.pl 2002/12/21 09:42:57 1.18 +++ shiela.pl 2002/12/21 09:53:16 1.19 @@ -193,8 +193,8 @@ my $v = `$RT->{cvs} --version 2>/dev/null`; $RT->{cvsvers} = '?'; $RT->{cvsvers} = $1 if ($v =~ m|Concurrent\s+Versions\s+System\s+\(CVS\)\s+([\d.p]+)\s+|s); - $RT->{cvsossp} = 0; - $RT->{cvsossp} = 1 if ($v =~ m|OSSP|s); + $RT->{cvsrse} = 0; + $RT->{cvsrse} = 1 if ($v =~ m|\[RSE\]|s); die "$RT->{cvs} is not at least CVS 1.10" if ($RT->{cvsvers} !~ m|^1\.1[0-9]|); $RT->{useserver} = 0; $RT->{useserver} = 1 if ($v =~ m|server|s); @@ -717,7 +717,7 @@ "From: \"".$RT->{username}."\" <".$RT->{usermail}.">\n" . "To: $toaddr\n" . "User-Agent: ".uc(substr($RT->{name}, 0, 1)).substr($RT->{name}, 1)."/$RT->{vers} " . - ($RT->{cvsossp} ? "OSSP-CVS" : "CVS")."/$RT->{cvsvers}\n" . + "CVS/".$RT->{cvsvers}.($RT->{cvsrse} ? "+RSE" : "")."\n"; "Precedence: bulk\n" . "Mime-Version: 1.0\n" . "Content-Type: text/plain; charset=iso-8859-1\n" . @@ -1244,7 +1244,7 @@ ## We hook into CVS via `commitinfo' to post-process log messages. ## The intention is to sanitise the results of what the user may have ## `done' while editing the commit log message. If CVS is a standard -## version, this check is advisory only. If CVS contains the OSSP +## version, this check is advisory only. If CVS contains the RSE ## patches, the log message is changed and CVS reads back the contents ## so that this script can actually make changes. ## @@ -1257,8 +1257,8 @@ my ($PA, $RT, $CF) = @_; my $rv = 0; - # we require the OSSP patches for operation - return $rv if (not $RT->{cvsossp}); + # we require the RSE patches for operation + return $rv if (not $RT->{cvsrse}); # suck in the log message my $logfile = $PA->{ARG}->[0]; @@ -1271,7 +1271,7 @@ $data = &compress_message($data); # update the log message - # (OSSP CVS reads in this again, stock CVS ignores it) + # (CVS with RSE patches reads in this again, stock CVS ignores it) open(FP, ">$logfile") || die "cannot open message file `$logfile' for writing"; print FP $data; close(FP); @@ -1378,7 +1378,7 @@ # N = new file # U = updated w/o conflict # C = updated w/ conflict - # T = touched/tagged only (OSSP extension) + # T = touched/tagged only (RSE extension) $RT->{cvsop} = 'import'; @cvsinfo = (); $cvsmsg =~ s|Status:\n+Vendor Tag:\s+(\S+).*?\nRelease Tags:\s+(.+?)\s*\n(.+)$||s; @@ -1456,8 +1456,8 @@ &do_file('write', "$RT->{tmpfile}.log", '', $cvslog); # if we are using a stock CVS version, we have to determine - # extra information (which an OSSP CVS version would provide). - if (not $RT->{cvsossp} and not $RT->{cvsop} eq 'import') { + # extra information (which an RSE CVS version would provide). + if (not $RT->{cvsrse} and not $RT->{cvsop} eq 'import') { # parse CVS commit information my $tag = 'HEAD';