Your message dated Sun, 28 May 2017 03:09:29 +0200
with message-id <[email protected]>
and subject line Re: Bug#863396: Problem solved
has caused the Debian Bug report #863396,
regarding dpkg refuses to install packages containing files already renamed by 
dpkg-divert
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
863396: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863396
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dpkg
Version: 1.18.24

dpkg doesn't check if files from another package were moved with
dpkg-divert.

I try to install my package containing this preinst script:

case "$1" in
install)
dpkg-divert --remove --package "titanium-desktop" --rename \
        /etc/xdg/openbox/autostart
dpkg-divert --remove --package "titanium-desktop" --rename \
        /etc/xdg/openbox/rc.xml
;;
esac

But dpkg complains about renamed file:

Unpacking titanium-desktop-full (1.0.0) ...
dpkg: error processing archive
/opt/deb/titanium-desktop-full_1.0.0-1_all.deb (--install):
 trying to overwrite '/etc/xdg/openbox/autostart', which is also in package
openbox 3.6.1-4

The file '/etc/xdg/openbox/autostart' is indeed renamed to
'autostart.disabled' by dpkg-divert as shown below:

root@ubuntu-work:/# ls /etc/xdg/openbox/
autostart.disabled  environment  menu.xml  rc.xml.disabled


With Debian 8 Jessie the package was installed without error. This error
reproduces only with Debian 9 Stretch.

I am using Debian GNU/Linux 9 installed through debootstrap.

--- End Message ---
--- Begin Message ---
Hi!

On Fri, 2017-05-26 at 11:54:03 +0200, Андрей Доценко wrote:
> Sorry, It's my error, I've renamed package it was the cause of the error.
> Problem solved.

Thanks, closing now.

Regards,
Guillem

--- End Message ---

Reply via email to