Package: dpkg
Version: 1.13.9
Severity: normal
Tags: patch

Hi, 

dpkg >= 1.13.x (at least?) comes with local diversions of 

/usr/bin/md5sum.textutils to /usr/bin/md5sum
/usr/share/man/man1/md5sum.textutils.1.gz to /usr/share/man/man1/md5sum.1.gz

These are not correctly undiverted in the dpkg.prerm script when uninstalling 
or downgrading. 
'apt-get install dpkg/testing' yields

---
dpkg - warning: downgrading dpkg from 1.13.9 to 1.10.28.
(Reading database ... 95019 files and directories currently installed.)
Preparing to replace dpkg 1.13.9 (using .../archives/dpkg_1.10.28_i386.deb) ...
No diversion `any diversion of /usr/bin/md5sum', none removed
No diversion `any diversion of /usr/share/man/man1/md5sum.1.gz', none removed
Unpacking replacement dpkg ...
dpkg: error processing /var/cache/apt/archives/dpkg_1.10.28_i386.deb (--unpack):
 trying to overwrite `/usr/share/man/man1/md5sum.1.gz', 
   which is the diverted version of `/usr/share/man/man1/md5sum.textutils.1.gz'
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/dpkg_1.10.28_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
---


I suggest the following patch to solve this.

******************************************************************************
--- /var/lib/dpkg/info/dpkg.prerm.orig  2005-06-13 16:24:40.000000000 +0200
+++ /var/lib/dpkg/info/dpkg.prerm       2005-06-13 16:41:10.000000000 +0200
@@ -20,8 +20,8 @@
 
 # Remove the md5sum diversion on removal or downgrade
 undivert_md5sum() {
-    dpkg-divert --rename --remove /usr/bin/md5sum
-    dpkg-divert --rename --remove /usr/share/man/man1/md5sum.1.gz
+    dpkg-divert --rename --remove /usr/bin/md5sum.textutils
+    dpkg-divert --rename --remove /usr/share/man/man1/md5sum.textutils.1.gz
 }
******************************************************************************



-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11-fdr3d.28-skas3-v8
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages dpkg depends on:
ii  coreutils [textutils]       5.2.1-2      The GNU core utilities
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an

-- no debconf information


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

Reply via email to