Beispiel #1
0
def built_module_touch(module):
    from devbot import sourcestamp

    built_modules = _load_state(_BUILT_MODULES, {})

    source_stamp = sourcestamp.compute(module.get_source_dir())
    built_modules[module.name] = {"source_stamp": source_stamp}

    _save_state(_BUILT_MODULES, built_modules)
Beispiel #2
0
def system_check_touch():
    if not has_sourcestamp:
        return

    system_check = _load_state(_SYSTEM_CHECK, {})

    config_stamp = sourcestamp.compute(config.config_dir)
    system_check["config_stamp"] = config_stamp

    _save_state(_SYSTEM_CHECK, system_check)
Beispiel #3
0
def built_module_touch(module):
    if not has_sourcestamp:
        return

    built_modules = _load_state(_BUILT_MODULES, {})

    source_stamp = sourcestamp.compute(module.get_source_dir())
    built_modules[module.name] = {"source_stamp": source_stamp}

    _save_state(_BUILT_MODULES, built_modules)
Beispiel #4
0
def system_check_is_unchanged():
    if not has_sourcestamp:
        return False

    system_check = _load_state(_SYSTEM_CHECK)
    if not system_check or not "config_stamp" in system_check:
        return False

    config_stamp = sourcestamp.compute(config.config_dir)

    return system_check["config_stamp"] == config_stamp
Beispiel #5
0
def system_check_touch():
    try:
        from devbot import sourcestamp
    except ImportError:
        return

    system_check = _load_state(_SYSTEM_CHECK, {})

    config_stamp = sourcestamp.compute(config.config_dir)
    system_check["config_stamp"] = config_stamp

    _save_state(_SYSTEM_CHECK, system_check)
Beispiel #6
0
def system_check_is_unchanged():
    try:
        from devbot import sourcestamp
    except ImportError:
        return False

    system_check = _load_state(_SYSTEM_CHECK)
    if not system_check or not "config_stamp" in system_check:
        return False

    config_stamp = sourcestamp.compute(config.config_dir)

    return system_check["config_stamp"] == config_stamp
Beispiel #7
0
def built_module_is_unchanged(module):
    from devbot import sourcestamp

    built_modules = _load_state(_BUILT_MODULES, {})
    if module.name not in built_modules:
        return False

    built_module = built_modules[module.name]
    if "source_stamp" not in built_module:
        return False

    old_source_stamp = built_module["source_stamp"]
    new_source_stamp = sourcestamp.compute(module.get_source_dir())

    return old_source_stamp == new_source_stamp