Changeset 1631 in tailor


Ignore:
Timestamp:
06/09/08 08:32:19 (5 years ago)
Author:
<walter.franzini@…>
Hash name:
20080609063219-bb3d1-39a2306e39112f0e706405993beebb5be35a18df
Message:

[aegis] config file creation improved

Adds a config file if at commit time it's not yet present in the target
repository.

Location:
vcpx/repository/aegis
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • vcpx/repository/aegis/__init__.py

    r1562 r1631  
    1313 
    1414class AegisRepository(Repository): 
     15    USAGE_BUILD = 'build' 
     16    USAGE_CONFIG = 'config' 
     17    USAGE_MANUAL_TEST = 'manual-test' 
     18    USAGE_SOURCE = 'source' 
     19    USAGE_TEST = 'test' 
    1520 
    1621    def _load(self, project): 
     
    4752        return rc 
    4853 
    49     def project_file_list_get(self): 
     54    def project_file_list_get(self, usage = None): 
    5055        cmd = self.command("-project", self.module, 
    5156                           executable = "aelpf") 
     57        if usage: 
     58            cmd.append('--usage') 
     59            cmd.append(usage) 
    5260        aelpf = ExternalCommand (cwd="/tmp", command=cmd) 
    5361        output = aelpf.execute(stdout = PIPE, stderr = STDOUT)[0] 
  • vcpx/repository/aegis/target.py

    r1628 r1631  
    3636        """ 
    3737 
     38        config_files = \ 
     39            self.repository.project_file_list_get(self.repository.USAGE_CONFIG) 
     40 
    3841        # 
    3942        # The invocation for the initialcommit does not receive entries. 
    4043        # 
    41         if isinitialcommit: 
     44        if isinitialcommit or not config_files: 
    4245            self.__new_file("aegis.conf", "config") 
    4346            self.__config_file(self.repository.basedir, "aegis.conf") 
Note: See TracChangeset for help on using the changeset viewer.