From d3392980e873ad61b37adca17c4a83d419bacdc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Tue, 13 Jun 2006 21:31:33 +0000 Subject: [PATCH] * fix: clean componentdb too while updating repo * fix: turkish i18n of install-info is broken and no need to fix it anyway (since docs are so english :) --- pisi/atomicoperations.py | 4 ++-- pisi/index.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pisi/atomicoperations.py b/pisi/atomicoperations.py index a9f2019b..b0210327 100644 --- a/pisi/atomicoperations.py +++ b/pisi/atomicoperations.py @@ -333,7 +333,7 @@ class Install(AtomicOperation): def update_info(self): for x in self.files.list: if x.type == 'info': - pisi.util.run_batch('install-info /%s /usr/share/info/dir' % x.path) + pisi.util.run_batch('LC_ALL=C install-info /%s /usr/share/info/dir' % x.path) def update_environment(self): # check if we have any shared objects or anything under @@ -484,7 +484,7 @@ class Remove(AtomicOperation): def update_info(self): for x in self.files.list: if x.type == 'info': - pisi.util.run_batch('install-info --delete /%s /usr/share/info/dir ' % x.path) + pisi.util.run_batch('LC_ALL=C install-info --delete /%s /usr/share/info/dir ' % x.path) def remove_single(package_name): diff --git a/pisi/index.py b/pisi/index.py index fc84d842..ac3a4118 100644 --- a/pisi/index.py +++ b/pisi/index.py @@ -104,6 +104,7 @@ class Index(XmlFile): del dirs[0:] def update_db(self, repo, txn = None): + ctx.componentdb.remove_repo(repo, txn=txn) for comp in self.components: ctx.componentdb.update_component(comp, repo, txn) ctx.packagedb.remove_repo(repo, txn=txn)