Beispiel #1
0
def run_build(clean_all=False):
    if clean_all or state.full_build_is_required():
        clean.clean(build_only=True, new_files=clean_all)
        environ.setup_gconf()

    state.full_build_touch()

    if not build.pull(lazy=True):
        return False

    if not build.build(full=False):
        return False

    return True
Beispiel #2
0
def run_build(clean_all=False):
    if clean_all or state.full_build_is_required():
        clean.clean(build_only=True, new_files=clean_all)
        environ.setup_gconf()

    state.full_build_touch()

    if not build.pull(lazy=True):
        return False

    if not build.build(full=False):
        return False

    return True
Beispiel #3
0
def cmd_pull():
    parser = argparse.ArgumentParser()
    parser.add_argument("module", nargs="?", help="name of the module to pull")
    parser.add_argument("--revisions",
                        help="json dict with the revisions to pull")
    args = parser.parse_args()

    if args.module:
        if not build.pull_one(args.module):
            return False
    else:
        revisions = {}
        if args.revisions:
            revisions = json.loads(args.revisions)

        if not build.pull(revisions):
            return False

    return True
Beispiel #4
0
def cmd_pull():
    parser = argparse.ArgumentParser()
    parser.add_argument("module", nargs="?",
                        help="name of the module to pull")
    parser.add_argument("--revisions",
                        help="json dict with the revisions to pull")
    args = parser.parse_args()

    if args.module:
        if not build.pull_one(args.module):
            return False
    else:
        revisions = {}
        if args.revisions:
            revisions = json.loads(args.revisions)

        if not build.pull(revisions):
            return False

    return True