[Uludag-commits] r15254 - in branches/pisi-db/pisi: . db
uludag-commits at pardus.org.tr
uludag-commits at pardus.org.tr
1 Eyl 2007 Cmt 22:07:15 EEST
Author: faik
Date: Sat Sep 1 22:07:15 2007
New Revision: 15254
Modified:
branches/pisi-db/pisi/api.py
branches/pisi-db/pisi/db/repodb.py
Log:
implement remove_repo
Modified: branches/pisi-db/pisi/api.py
=================================================================
--- branches/pisi-db/pisi/api.py (original)
+++ branches/pisi-db/pisi/api.py Sat Sep 1 22:07:15 2007
@@ -391,7 +391,6 @@
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(), name))
ctx.ui.info(_('Repo %s removed from system.') % name)
else:
ctx.ui.error(_('Repository %s does not exist. Cannot remove.')
Modified: branches/pisi-db/pisi/db/repodb.py
=================================================================
--- branches/pisi-db/pisi/db/repodb.py (original)
+++ branches/pisi-db/pisi/db/repodb.py Sat Sep 1 22:07:15 2007
@@ -16,6 +16,7 @@
import pisi
import pisi.uri
+import pisi.util
import pisi.index
import pisi.context as ctx
@@ -52,4 +53,4 @@
return os.listdir(ctx.config.index_dir())
def remove_repo(self, name):
- raise Exception(_('Not implemented'))
+ pisi.util.clean_dir(os.path.join(ctx.config.index_dir(), name))
Uludag-commits mesaj listesiyle ilgili
daha fazla bilgi