ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/Scram/ScramProjectDB.pm
(Generate patch)

Comparing COMP/SCRAM/src/Scram/ScramProjectDB.pm (file contents):
Revision 1.3 by williamc, Wed Nov 15 10:08:27 2000 UTC vs.
Revision 1.5 by sashby, Wed May 30 12:47:01 2001 UTC

# Line 41 | Line 41 | sub file {
41   }
42  
43   sub getarea {
44 <        my $self=shift;
44 >        require Configuration::ConfigArea;
45 >        my $self=shift;
46          my $name=shift;
47          my $version=shift;
48  
# Line 86 | Line 87 | sub addarea {
87          my $area=shift;
88  
89          my $rv=1;
89
90        #my $type="_location"; not ready for this yet
90          my $type="file";
91          my $url=$area->location()."/.SCRAM/InstallFile";
92          # -- check for duplicates
93          for ( my $index=0; $index<=$#{$self->{projects}}; $index++ ) {
94           if  ( $self->{projects}[$index][0] eq $name ) {
95            if ( $self->{projects}[$index][1] eq $version ) {
96 <            print "$name $version alreay exists. Overwrite (y/n)\n";
96 >            print "$name $version already exists. Overwrite? (y/n) :";
97              if ( ! (<STDIN>=~/y/i ) ) {
98                          print "Aborting install ...\n";
99                          return 1;
# Line 143 | Line 142 | sub listall {
142          return @list;
143   }
144  
145 < sub removearea {
146 <        my $self=shift;
147 <        my $name=shift;
148 <        my $version=shift;
149 <
150 <        print "Not yet implemented\n";
151 < }
145 > sub removearea
146 >   {
147 >   ###############################################################
148 >   # removearea(name,version)                                    #
149 >   ###############################################################
150 >   # modified : Mon May 28 11:24:29 2001 / SFA                   #
151 >   # params   :                                                  #
152 >   #          :                                                  #
153 >   #          :                                                  #
154 >   #          :                                                  #
155 >   # function : Remove project area from scramdb file.           #
156 >   #          :                                                  #
157 >   #          :                                                  #
158 >   ###############################################################
159 >   my $self=shift;
160 >   my $name=shift;
161 >   my $version=shift;
162 >
163 >   print "DEBUG: ",$name," ",$version,"\n";
164 >   print "Not yet implemented\n";
165 >   }
166  
167   sub link {
168          my $self=shift;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines