From 9a6c618e1ea77217d3f8749e49d455edba5a9d7f Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Sun, 5 Nov 2006 20:30:47 +0000 Subject: [PATCH] * really fix 2911 and _TEST_ it. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit coreutils paketi yapılandırıldı coreutils paketi kuruldu Paket shadow, pardus-1.1 deposunda bulundu shadow-4.0.16-6-7.pisi [önbellekte] shadow paketi, versiyon 4.0.16, sürüm 6, inşa 7 kuruluyor Yeni dağıtım sürümüne yukseltiliyor Paket kaldırılmak üzere yapılandırılıyor DEBUG: Paketin kaldırma öncesi betiği çağrılıyor DEBUG: Kaldırma öncesi betikleri çağrılıyor DEBUG: comar betikleri siliniyor shadow paketinin dosyaları arşivden çıkartılıyor DEBUG: "lzma d /var/tmp/pisi/install.tar.lzma /var/tmp/pisi/install.tar" için dönüş değeri 0 Çakışan dosya silinmiyor : /usr/share/man/man1/groups.1 Çakışan dosya silinmiyor : /bin/groups Paket yapılandırılıyor DEBUG: Yerleştirme sonrası betikleri çağrılıyor shadow paketi yapılandırıldı shadow paketi yükseltildi --- pisi/atomicoperations.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pisi/atomicoperations.py b/pisi/atomicoperations.py index cf54e3c6..929369f7 100644 --- a/pisi/atomicoperations.py +++ b/pisi/atomicoperations.py @@ -300,7 +300,7 @@ class Install(AtomicOperation): for fileinfo in self.old_files.list: old_fileinfo[str(fileinfo.path)] = fileinfo for path in leftover: - Remove.remove_file( old_fileinfo[path] ) + Remove.remove_file(old_fileinfo[path], self.pkginfo.name) if self.reinstall: # get 'config' typed file objects @@ -420,7 +420,7 @@ class Remove(AtomicOperation): self.run_preremove() for fileinfo in self.files.list: - self.remove_file(fileinfo) + self.remove_file(fileinfo, self.package_name) txn = ctx.dbenv.txn_begin() try: @@ -442,16 +442,16 @@ class Remove(AtomicOperation): # is there any package who depends on this package? @staticmethod - def remove_file(fileinfo): + def remove_file(fileinfo, package_name): fpath = pisi.util.join_path(ctx.config.dest_dir(), fileinfo.path) # we should check if the file belongs to another # package (this can legitimately occur while upgrading # two packages such that a file has moved from one package to # another as in #2911) - if ctx.filesdb.has_file(fpath): - pkg, existing_file = ctx.filesdb.get_file(fpath) - if pkg != self.package_name: + if ctx.filesdb.has_file(fileinfo.path): + pkg, existing_file = ctx.filesdb.get_file(fileinfo.path) + if pkg != package_name: ctx.ui.warning(_('Not removing conflicted file : %s') % fpath) return