def do_directory_repo(self, repo):
        '''
        [Re]define REPO as directory package repository.

        directory_repo REPO
        '''
        self.abort_on_missing_effective_repo_name(repo, 'directory_repo')
        repo_name = self.get_effective_repo_name(repo)
        try:
            self.network.set(repo_name, REPO.TYPE, REPOTYPE.DIRECTORY)
        except UnknownRepoError:
            self.network.define_directory_repo(repo_name)
        self.network.active_repo = repo_name
[Re]define REPO as directory package repository.

        directory_repo REPO