Пример #1
0
    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)
Пример #2
0
Файл: init.py Проект: wml/evolve
 def __call__(self, options):
   if 0 != os.getuid():
     raise CommandError('init command must be run as root')
   Repository.init_repo(options.repo)