From 16590b3b855450d299e02ae9badc96fc1a90da12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Sun, 9 Apr 2006 14:21:08 +0000 Subject: [PATCH] =?UTF-8?q?caglar@pardus=20base=20$=20sudo=20pisi=20rr=20p?= =?UTF-8?q?ardus-1-test=20-d=20DEBUG:=20PISI=20API=20initialized=20DEBUG:?= =?UTF-8?q?=20PISI=20API=20initialized=20Sistem=20Hatas=C4=B1:=20Program?= =?UTF-8?q?=20Sonland=C4=B1r=C4=B1ld=C4=B1.=20exceptions.NameError:=20glob?= =?UTF-8?q?al=20name=20'repo'=20is=20not=20defined=20Genel=20yard=C4=B1m?= =?UTF-8?q?=20i=C3=A7in=20l=C3=BCtfen=20'pisi=20help'=20komutunu=20kullan?= =?UTF-8?q?=C4=B1n=C4=B1z.=20Geri-iz:=20=20=20File=20"/usr/bin/pisi",=20li?= =?UTF-8?q?ne=2076,=20in=20=3F=20=20=20=20=20cli.run=5Fcommand()=20=20=20F?= =?UTF-8?q?ile=20"/usr/lib/pardus/pisi/cli/pisicli.py",=20line=20108,=20in?= =?UTF-8?q?=20run=5Fcommand=20=20=20=20=20self.command.run()=20=20=20File?= =?UTF-8?q?=20"/usr/lib/pardus/pisi/cli/commands.py",=20line=20909,=20in?= =?UTF-8?q?=20run=20=20=20=20=20pisi.api.remove=5Frepo(repo)=20=20=20File?= =?UTF-8?q?=20"/usr/lib/pardus/pisi/api.py",=20line=20321,=20in=20remove?= =?UTF-8?q?=5Frepo=20=20=20=20=20pisi.util.clean=5Fdir(os.path.join(ctx.co?= =?UTF-8?q?nfig.index=5Fdir(),=20repo))=20DEBUG:=20PISI=20API=20finalized?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pisi/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pisi/api.py b/pisi/api.py index 88a4614d..9f38cb55 100644 --- a/pisi/api.py +++ b/pisi/api.py @@ -318,7 +318,7 @@ def add_repo(name, indexuri): def remove_repo(name): if ctx.repodb.has_repo(name): ctx.repodb.remove_repo(name) - pisi.util.clean_dir(os.path.join(ctx.config.index_dir(), repo)) + pisi.util.clean_dir(os.path.join(ctx.config.index_dir(), name)) ctx.ui.info(_('Repo %s removed from system.') % name) else: ctx.ui.error(_('Repository %s does not exist. Cannot remove.')