Package: dpkg Version: 1.17.5ubuntu5.4 Severity: normal Dear Maintainer,
On my Ubuntu system I get kernel update failures because of some existing dpkg-statoverride rules. This led me to investigate how dpkg-statoverride works, and I discovered that there's an --update option that according to how I understand the man page ought to make it possible to update an existing override. But the option was already present in /etc/kernel/postinst.d/statoverride. That led me to look at the code. So the issue is that in src/statcmd.c:statoverride_add the logic seems flawed in the sense that it first checks that the file exists -- and errors out if it does -- then, if --update is specified, it checks again, and warns if it *doesn't* exist, but at this point it cannot exist, at least not unless --force is also specified. My assumption would be that it should not be an error that the file exists when specifying --update. It seems to be identical in the git master branch as in my Ubuntu version. -- System Information: Debian Release: jessie/sid APT prefers trusty-updates APT policy: (500, 'trusty-updates'), (500, 'trusty-security'), (500, 'trusty') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.13.0-53-generic (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages dpkg depends on: ii libbz2-1.0 1.0.6-5 ii libc6 2.19-0ubuntu6.6 ii liblzma5 5.1.1alpha+20120614-2ubuntu2 ii libselinux1 2.2.2-1ubuntu0.1 ii tar 1.27.1-1 ii zlib1g 1:1.2.8.dfsg-1ubuntu1 dpkg recommends no packages. Versions of packages dpkg suggests: ii apt 1.0.1ubuntu2.8 -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org