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.1.2.3 by williamc, Thu May 11 14:57:52 2000 UTC vs.
Revision 1.1.2.3.2.1 by williamc, Mon Aug 7 09:55:36 2000 UTC

# Line 29 | Line 29 | sub new {
29          bless $self, $class;
30          $self->{dbfile}=shift;
31          $self->_readdbfile($self->{dbfile});
32 +        $self->{projectobjects}={};
33          return $self;
34   }
35  
# Line 46 | Line 47 | sub getarea {
47          my $index=$self->_findlocal($name,$version);
48          if ( $index != -1 ) {  
49           my $location=$self->{projects}[$index][3];
50 +         if ( defined $self->{projectobjects}{$location} ) {
51 +           $area=$self->{projectobjects}{$location};
52 +         }
53 +         else {
54           $area=Configuration::ConfigArea->new();
55           $self->verbose("Attempt to ressurect $name $version from $location");
56           if ( $area->bootstrapfromlocation($location) == 1 ) {
# Line 54 | Line 59 | sub getarea {
59           }
60           else {
61             $self->verbose("area found");
62 +           $self->{projectobjects}{$location}=$area;
63 +         }
64           }
65          }
66          else {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines