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.4 by sashby, Mon May 28 09:06:44 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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines