def __call__(self, options, type, path, name): if not type in ["rlink"]: raise CommandError("bad meta type passed to update") repo = Repository(options.repo) repo.update_rlink(path, name)
def __call__(self, options): if 0 != os.getuid(): raise CommandError('init command must be run as root') Repository.init_repo(options.repo)