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

Comparing COMP/SCRAM/src/Configuration/ConfigArea.pm (file contents):
Revision 1.13.2.6.2.3 by williamc, Tue Aug 8 11:11:58 2000 UTC vs.
Revision 1.13.2.6.2.6 by williamc, Tue Aug 15 08:33:15 2000 UTC

# Line 38 | Line 38
38   # linkto(location)              : link the current area to that at location
39   # unlinkarea()                  : destroy link (autosave)
40   # linkarea([ConfigArea])        : link the current area to the apec Area Object
41 + # archname()            : get/set a string to indicate architecture
42 + # archdir()             : return the location of the administration arch dep
43 + #                         directory
44   # - temporary
45   # align()                       : adjust hard paths to suit local loaction
46  
# Line 236 | Line 239 | sub searchlocation {
239          return $rv?$thispath:undef;
240   }
241  
242 + sub archname {
243 +        my $self=shift;
244 +        if ( @_ ) {
245 +          $self->{archname}=shift;
246 +        }
247 +        return $self->{archname};
248 + }
249 +
250 + sub archdir {
251 +        my $self=shift;
252 +        if ( @_ ) {
253 +          $self->{archdir}=shift;
254 +        }
255 +        if ( ! defined $self->{archdir} ) {
256 +         if ( defined $self->{archname} ) {
257 +          $self->{archdir}=$self->location()."/".$self->{admindir}."/".
258 +                                                        $self->{archname};
259 +         }
260 +         else {
261 +          $self->error("ConfigArea : cannot create arch directory - ".
262 +                                                "architecture name not set")
263 +         }
264 +        }
265 +        return $self->{archdir};
266 + }
267 +
268   sub satellite {
269          my $self=shift;
270  
# Line 254 | Line 283 | sub satellite {
283  
284          # -- link it to this area
285          $sat->linkarea($self);
286 +        
287 +        # -- save it
288 +        $sat->save();
289  
290 +        return $sat;
291   }
292  
293   sub copy {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines