Changeset 5a44122 in rtems-tools


Ignore:
Timestamp:
Aug 4, 2012, 12:17:50 PM (7 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, e9f48e9face6c4dea62712d73b35412c0fe10332
Children:
68c9b8a
Parents:
e801762
Message:

Comments clean up.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • specbuilder/specbuilder/spec.py

    re801762 r5a44122  
    2323
    2424#
    25 # This code is based on what ever doco about spec files I could find and 
     25# This code is based on what ever doco about spec files I could find and
    2626# RTEMS project's spec files. It parses a spec file into Python data types
    2727# that can be used by other software modules.
     
    6262            '\n directives:\n' + _dictlist(self.directives) + \
    6363            '\n infos:\n' + _dictlist(self.infos)
    64        
     64
    6565        return s
    66            
     66
    6767    def get_info(self, info):
    6868        if not info in self.infos:
     
    129129    def prep(self):
    130130        return self.find_directive('%prep')
    131        
     131
    132132    def build(self):
    133133        return self.find_directive('%build')
     
    138138    def clean(self):
    139139        return self.find_directive('%clean')
    140        
     140
    141141    def post(self):
    142142        return self.find_directive('%post')
     
    280280            print 'ms:', macros
    281281        return macros
    282                    
     282
    283283    def _shell(self, line):
    284284        sl = self.sf.findall(line)
     
    388388            d = self._label(ls[1])
    389389            if d not in self.defines:
    390                 if len(ls) == 2: 
     390                if len(ls) == 2:
    391391                    self.defines[d] = '1'
    392392                else:
     
    427427
    428428    def _if(self, spec, ls, isvalid):
    429        
     429
    430430        global debug
    431431
     
    503503                print '_if:  ', ifls, istrue
    504504        return self._ifs(spec, ls, '%if', istrue, isvalid)
    505            
     505
    506506    def _ifos(self, spec, ls, isvalid):
    507507        isos = False
     
    600600                    if isvalid:
    601601                        #
    602                         # Check is already defined. Would be by the command line or
     602                        # Check if already defined. Would be by the command line or
    603603                        # even a host specific default.
    604604                        #
     
    629629                return
    630630        if _package not in self._packages:
    631             self._packages[_package] = package(_package, 
     631            self._packages[_package] = package(_package,
    632632                                               self.define('%{_arch}'))
    633633        self.package = _package
     
    656656        self._packages = {}
    657657        self.package = 'main'
    658         self._packages[self.package] = package(self.package, 
     658        self._packages[self.package] = package(self.package,
    659659                                               self.define('%{_arch}'))
    660660        self.specpath = os.path.join(self.abspath('_specdir'), name)
Note: See TracChangeset for help on using the changeset viewer.