Changeset 103

Show
Ignore:
Timestamp:
07/23/06 08:40:44 (2 years ago)
Author:
mk
Message:

Omit computing of pylint index (instead of giving 0 score for it) if pylint is not installed.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/mk/cheesecake/cheesecake_index.py

    r102 r103  
    956956 
    957957    def compute(self, files_list, package_dir): 
    958         self.value = 0 
    959  
    960         # Try to run the pylint script 
    961         if not command_successful("pylint --version"): 
    962             self.details = "pylint not properly installed" 
    963             return self.value 
    964  
    965958        # Exclude __init__.py files from score as they cause pylint 
    966959        #     to fail with ImportError "Unable to find module for %s in %s". 
     
    1003996 
    1004997    def decide_before_download(self, cheesecake): 
     998        # Try to run the pylint script 
     999        if not command_successful("pylint --version"): 
     1000            cheesecake.log.debug("pylint not properly installed, omitting pylint index.") 
     1001            return False 
     1002 
    10051003        return not cheesecake.lite 
    10061004