From fb8956cf045f8f63913f83b7185b22dc36381665 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20A=C5=9F=C4=B1c=C4=B1?= Date: Thu, 20 May 2010 12:26:16 +0000 Subject: [PATCH] cli/addrepo: Remove dead code --- pisi/cli/addrepo.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/pisi/cli/addrepo.py b/pisi/cli/addrepo.py index 0c41d72a..6cc24790 100644 --- a/pisi/cli/addrepo.py +++ b/pisi/cli/addrepo.py @@ -54,18 +54,6 @@ NB: We support only local files (e.g., /a/b/c) and http:// URIs at the moment ctx.ui.warning(message) pisi.api.remove_repo(repo) - def check_distro(self, repo): - if not self.repodb.get_distribution(repo): - ctx.ui.warning( - _("Unable to check compatibility of this repository as " - "it does not have information about the distribution.")) - return - - if not self.repodb.check_distribution(repo): - self.warn_and_remove( - _("Repository distribution does not match. " - "Removing %s from system.") % repo, repo) - def run(self): if len(self.args)==2 or len(self.args)==0: