Package: dpkg
Version: 1.14.18
Severity: normal

Hi,

dpkg-divert can't divert files in (currently) non-existing directories:

======================================================================
# dpkg-divert --rename --add /boot/a/a.txt
Adding `local diversion of /boot/a/a.txt to /boot/a/a.txt.distrib'
dpkg-divert: error checking `/boot/a/a.txt.distrib': No such file or
directory
# dpkg-divert --rename --add /boot/a.txt
Adding `local diversion of /boot/a.txt to /boot/a.txt.distrib'
======================================================================

Scenario:

A package contains a file to be diverted. It is located in a
subdirectory which is also contained in another package. Unfortunately,
the other package isn't installed when the first package is installed
and running "dpkg-divert --add" in its preinst script. At this point,
the described directory (with the file to be diverted) doesn't exist at
all, yet, leading to the above error.

Thanks for considering.

bye,
  Roland

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

Kernel: Linux 2.6.24-rt1 (SMP w/1 CPU core; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_GB.UTF-8)
Shell: /bin/sh linked to /bin/bash

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

dpkg recommends no packages.

-- debconf-show failed



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

Reply via email to