Your message dated Tue, 15 Mar 2005 09:31:58 +0100 (CET)
with message-id <[EMAIL PROTECTED]>
and subject line not accurate anymore
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 21 Oct 2002 12:54:16 +0000
>From [EMAIL PROTECTED] Mon Oct 21 07:54:16 2002
Return-path: <[EMAIL PROTECTED]>
Received: from 213-96-69-115.uc.nombres.ttd.es (natura.oskuro.net) 
[213.96.69.115] 
        by master.debian.org with esmtp (Exim 3.12 1 (Debian))
        id 183c4V-00069P-00; Mon, 21 Oct 2002 07:54:16 -0500
Received: from nubol.amalur.nat (unknown [192.168.1.3])
        by natura.oskuro.net (Postfix) with ESMTP
        id 5BC13279F5; Mon, 21 Oct 2002 14:53:44 +0200 (CEST)
Received: by nubol.amalur.nat (Postfix, from userid 1000)
        id 9632F70A740; Mon, 21 Oct 2002 14:53:43 +0200 (CEST)
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
From: Jordi Mallach <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: update-alternatives check always returns true
X-Mailer: reportbug 2.7
Date: Mon, 21 Oct 2002 14:53:43 +0200
Message-Id: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
X-Spam-Status: No, hits=0.0 required=5.0
        tests=PATCH_UNIFIED_DIFF,SPAM_PHRASE_00_01
        version=2.41
X-Spam-Level: 

Package: vim
Version: 6.1.206-1
Severity: normal

Hi wiggy,

As I told you, the check in postinst for installed alternatives will
always return true. The following is a proposed fix by Matej Vela which
I modified (and didn't test) for vim. You probably need to apply it to
other vim flavours...


--- vim.postinst.orig   2002-10-21 14:44:40.000000000 +0200
+++ vim.postinst        2002-10-21 14:50:18.000000000 +0200
@@ -5,15 +5,15 @@
 pkg=3Dvim
 =

 update_alt() {
-       buffer=3D$(tempfile)
        for i in vi view ex editor ; do
-               update-alternatives --display $i > $buffer || true
-               if ! grep -q '^\(vim\|/usr/man\)' $buffer; then
-                       update-alternatives --install /usr/bin/$i $i 
/usr/bin/vim 120 \
-                       --slave /usr/share/man/man1/$i.1.gz $i.1.gz 
/usr/share/man/man1/vim.1.gz
+               if ! update-alternatives --list $i |
+                    fgrep -qx /usr/bin/vim; then
+                       update-alternatives --install /usr/bin/$i $i \
+                               /usr/bin/vim 120 \
+                               --slave /usr/share/man/man1/$i.1.gz \
+                               $i.1.gz /usr/share/man/man1/vim.1.gz
                fi
        done
-       rm -f $buffer
 }
 =

 update_docbase() {

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux nubol 2.4.19-xfs+acpi #1 Fri Aug 23 03:22:50 CEST 2002 i686
Locale: LANG=3Den_US, LC_CTYPE=3Den_US

Versions of packages vim depends on:
ii  dpkg                     1.10.9          Package maintenance system for=
 Deb
ii  libc6                    2.3.1-1         GNU C Library: Shared librarie=
s an
ii  libgpmg1                 1.19.6-12       General Purpose Mouse Library =
[lib
ii  libncurses5              5.2.20020112a-8 Shared libraries for terminal =
hand

-- no debconf information


---------------------------------------
Received: (at 165738-done) by bugs.debian.org; 15 Mar 2005 08:32:31 +0000
>From [EMAIL PROTECTED] Tue Mar 15 00:32:30 2005
Return-path: <[EMAIL PROTECTED]>
Received: from nez-perce.inria.fr [192.93.2.78] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1DB7Ta-0008Jf-00; Tue, 15 Mar 2005 00:32:30 -0800
Received: from amaretto.inria.fr (amaretto.inria.fr [128.93.8.127])
        by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j2F8VwXV019086
        for <[EMAIL PROTECTED]>; Tue, 15 Mar 2005 09:31:59 +0100
Received: by amaretto.inria.fr (Postfix, from userid 12657)
        id E19C312C70; Tue, 15 Mar 2005 09:31:58 +0100 (CET)
To: [EMAIL PROTECTED]
Subject: not accurate anymore
Message-Id: <[EMAIL PROTECTED]>
Date: Tue, 15 Mar 2005 09:31:58 +0100 (CET)
From: [EMAIL PROTECTED] (Pierre Habouzit)
X-Miltered: at nez-perce with ID 42369D7F.000 by Joe's j-chkmail 
(http://j-chkmail.ensmp.fr)!
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
        version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 


not accurate anymore


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to