Changeset 105
- Timestamp:
- 07/23/06 13:19:21 (2 years ago)
- Files:
-
- branches/mk/cheesecake/cheesecake_index.py (modified) (7 diffs)
- branches/mk/cheesecake/config.py (deleted)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/mk/cheesecake/cheesecake_index.py
r104 r105 37 37 from util import StdoutRedirector 38 38 from util import time_function 39 from config import get_pkg_config40 39 from codeparser import CodeParser 41 40 … … 1086 1085 } 1087 1086 1088 def __init__(self, name="", url="", path="", sandbox=None, config=None,1087 def __init__(self, name="", url="", path="", sandbox=None, 1089 1088 logfile=None, verbose=False, quiet=False, static_only=False, 1090 1089 lite=False): … … 1110 1109 os.mkdir(self.sandbox) 1111 1110 1112 self.config = config1113 1111 self.verbose = verbose 1114 1112 self.quiet = quiet … … 1185 1183 if remove_log_file: 1186 1184 os.unlink(os.path.join(self.sandbox, self.logfile)) 1187 1188 def set_defaults(self):1189 """Set default values for variables that can also be defined1190 in the config file.1191 """1192 pass1193 1194 def get_config(self, config_dir=None):1195 """Retrieve values from configuration file.1196 """1197 pass1198 1185 1199 1186 def configure_logging(self, logfile=None): … … 1545 1532 """ 1546 1533 parser = OptionParser() 1547 parser.add_option("-c", "--config", dest="config",1548 default=None,1549 help="directory with custom configuration (default=~/.cheesecake)")1550 1534 parser.add_option("--lite", action="store_true", dest="lite", 1551 1535 default=False, help="don't run time-consuming tests (default=False)") … … 1581 1565 path = options.path 1582 1566 sandbox = options.sandbox 1583 config = options.config1584 1567 logfile = options.logfile 1585 1568 verbose = options.verbose … … 1594 1577 try: 1595 1578 c = Cheesecake(name=name, url=url, path=path, sandbox=sandbox, 1596 config=config,logfile=logfile, verbose=verbose,1579 logfile=logfile, verbose=verbose, 1597 1580 quiet=quiet, static_only=static_only, lite=lite) 1598 1581 c.compute_cheesecake_index()
