savannah-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Savannah-hackers] Problems regarding CVS and the EMMS-project


From: Vincent Caron
Subject: Re: [Savannah-hackers] Problems regarding CVS and the EMMS-project
Date: Fri, 28 Nov 2003 19:13:31 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5b) Gecko/20030903 Thunderbird/0.2

Niels Ulrik Kasper Jensen wrote:
Hi

The EMMS-project seems to be having some problems with regard to
checking out, both anon. and for me as a project member. When I try to
checkout, Savannah won't recognize my public-key - and when I try anon,
it claims that the repository /cvsroot/emms doesn't exist.

I fixed this item in emergency with a crude hack on the currently installed sv_groups on Suversions. It looks like the late sv_cvs script has not been replaced while migrating, and the cvsroots list for pserver permission had not neen updated since wednesday.
*** sv_groups.orig      Fri Nov 28 12:15:13 2003
--- sv_groups   Fri Nov 28 12:57:12 2003
***************
*** 230,235 ****
--- 230,236 ----
  
  # Update existing groups, including the ones just created
  # These users are in the database and on the system.
+ my @cvsroots;
  
  foreach my $group (@db_groups) {
      
***************
*** 264,270 ****
        # not already exists)
        if ($use_cvs) {
            if ($dir_type_cvs eq "basiccvs"){ 
!               $madesomething .= CvsMakeArea($name,$dir_cvs,$is_public); 
            } elsif ($dir_type_cvs eq "basicdirectory"){ 
                $madesomething .= DownloadMakeArea($name,$dir_cvs,$is_public); 
            }       
--- 265,272 ----
        # not already exists)
        if ($use_cvs) {
            if ($dir_type_cvs eq "basiccvs"){ 
!               $madesomething .= CvsMakeArea($name,$dir_cvs,$is_public);
!               push @cvsroots, "/cvsroot/$name";
            } elsif ($dir_type_cvs eq "basicdirectory"){ 
                $madesomething .= DownloadMakeArea($name,$dir_cvs,$is_public); 
            }       
***************
*** 298,303 ****
--- 300,318 ----
  
  }
  
+ my $cvsroots_file = "/etc/cvs-pserver.cvsroots";
+ open CVSROOTS, ">${cvsroots_file}.new";
+ print CVSROOTS join("\n", sort @cvsroots);
+ print CVSROOTS <<EOF;
+ 
+ /cvs
+ /home/cvs
+ /cvsroot
+ /cvsroot/www
+ /webcvs
+ EOF
+ close CVSROOTS;
+ `mv -f $cvsroots_file ${cvsroots_file}.old && mv -f ${cvsroots_file}.new 
$cvsroots_file`;
  
  # Final exit
  print LOG strftime "[$script] %c - work finished\n", localtime;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]