[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#245562: dpkg-divert: no error reported when diverting into unexisting dir, even when --rename is not given



Package: dpkg
Version: 1.10.20
Severity: normal

When diverting to a non-existing dir, one should get an error, expecially
with given --rename, since then dpkg-divert was not able to complete his
job:

# dpkg-divert --package ufoai-skins-phoque --add --rename --divert /usr/lib/games/ufoai/base/backups/names.ufo /usr/lib/games/ufoai/base/ufos/names.ufo; echo $?
Adding `diversion of /usr/lib/games/ufoai/base/ufos/names.ufo to /usr/lib/games/ufoai/base/backups/names.ufo by ufoai-skins-phoque'
0
# ls /usr/lib/games/ufoai/base/backups
ls: /usr/lib/games/ufoai/base/backups: No such file or directory


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i586)
Kernel: Linux 2.4.23-k6+preempt+acl
Locale: LANG=C, LC_CTYPE=français

Versions of packages dpkg depends on:
ii  dselect                     1.10.20      a user tool to manage Debian packa
ii  libc6                       2.3.2.ds1-11 GNU C Library: Shared libraries an

-- no debconf information

-- 
Yann Dirson    <ydirson@altern.org> |    Why make M$-Bill richer & richer ?
Debian-related: <dirson@debian.org> |   Support Debian GNU/Linux:
Pro:    <yann.dirson@fr.alcove.com> |  Freedom, Power, Stability, Gratuity
     http://ydirson.free.fr/        | Check <http://www.debian.org/>



Reply to: