Esempio n. 1
0
File: update.py Progetto: wml/evolve
    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)
Esempio n. 2
0
File: init.py Progetto: wml/evolve
 def __call__(self, options):
   if 0 != os.getuid():
     raise CommandError('init command must be run as root')
   Repository.init_repo(options.repo)