Esempio n. 1
0
def cmd_clean():
    parser = argparse.ArgumentParser()
    parser.add_argument("module", nargs="?",
                        help="name of the module to clean")
    args = parser.parse_args()

    if args.module:
        if not build.clean_one(args.module):
            return False
    else:
        if not clean.clean():
            return False

    return True
Esempio n. 2
0
File: main.py Progetto: erik/osbuild
def cmd_clean():
    parser = argparse.ArgumentParser()
    parser.add_argument("module", nargs="?",
                        help="name of the module to clean")
    parser.add_argument("--new-files", action="store_true",
                        help="remove also new files")
    args = parser.parse_args()

    if args.module:
        if not build.clean_one(args.module):
            return False
    else:
        if not clean.clean(new_files=args.new_files):
            return False

    return True
Esempio n. 3
0
def cmd_clean():
    parser = argparse.ArgumentParser()
    parser.add_argument("module",
                        nargs="?",
                        help="name of the module to clean")
    parser.add_argument("--new-files",
                        action="store_true",
                        help="remove also new files")
    args = parser.parse_args()

    if args.module:
        if not build.clean_one(args.module):
            return False
    else:
        if not clean.clean(new_files=args.new_files):
            return False

    return True