Package: dpkg
Version: 1.14.16.6
Severity: normal

  While testing a script that invokes dpkg-divert, I wound up with some
diversions with errors in them, which dpkg-divert seems unable to
remove.  It seems that --add and --remove are not symmetrical (which may
be the real issue here, i.e. bug #160848); for example:

[EMAIL PROTECTED] ~]$ sudo dpkg-divert --add /just/total/garbage
Adding `local diversion of /just/total/garbage to /just/total/garbage.distrib'
[EMAIL PROTECTED] ~]$ sudo dpkg-divert --remove /just/total/garbage
Removing `local diversion of /just/total/garbage to /just/total/garbage.distrib'
dpkg-divert: error checking `/just/total/garbage': No such file or directory
[EMAIL PROTECTED] ~]$

  A glance at the man page offers no obvious options which will allow me
to remove this diversion, leaving me either to manually make the
directory with the typo in it, or to manually edit the diversions
database.  Both of those seem like very silly options.
  It would be best IMHO if dpkg-divert would make these operations
symmetrical with respect to diversions of files in directories which
never existed; it would be a fine alternative for me if there were a
documented way to remove faulty diversions (other then the obvious and
silly way of making a dummy directory and file).
  Thanks.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages dpkg depends on:
ii  coreutils                     6.10-3     The GNU core utilities
ii  libc6                         2.7-9      GNU C Library: Shared libraries

dpkg recommends no packages.

-- no debconf information



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

Reply via email to