Package: dpkg
Version: 1.16.10
Severity: important
Hi,
Usually if dpkg discovers that both local version of config file and
maintainer provided version of conffile where both modified, than it
prompts user to handle the situation.
However when - in addition to modifing config ile - a maintainer wants to
change its location (and the file in existing location has been modified by
local user) with `dpkg-mainscript-helper mv_conffile', no prompt is
given.
The dpkg-maintscript-helper contains the following code:
echo "Preserving user changes to $NEWCONFFILE (renamed from
$OLDCONFFILE)..."
mv -f "$NEWCONFFILE" "$NEWCONFFILE.dpkg-new"
mv -f "$OLDCONFFILE" "$NEWCONFFILE"
But this is not sufficient... The `Preserving changes' message will be
most probably overlooked by user in tones of messages produced during
upgrade, and I don't think any user checks for new *.dpkg-new files
after upgrade either.
It looks like dpkg will prompt user when confile newly introduced in
package does already exist in system. So I guess making
prepare_mv_conffile() function to rename locally modified file into
new location (i.e adding
else
mv -f "$CONFFILE" "$NEWFILE""
part for the following if
if [ "$md5sum" = "$old_md5sum" ]; then
mv -f "$CONFFILE" "$CONFFILE.dpkg-remove"
fi
) would solve the issue.
Regards,
robert
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (990, 'unstable'), (200, 'testing')
Architecture: i386 (i686)
Kernel: Linux 3.8-1-686-pae (SMP w/1 CPU core)
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)
Shell: /bin/sh linked to /bin/dash
Versions of packages dpkg depends on:
ii libbz2-1.0 1.0.6-4
ii libc6 2.17-5
ii liblzma5 5.1.1alpha+20120614-2
ii libselinux1 2.1.13-2
ii tar 1.26+dfsg-6
ii zlib1g 1:1.2.8.dfsg-1
dpkg recommends no packages.
Versions of packages dpkg suggests:
ii apt 0.9.8.2
-- Configuration Files:
/etc/dpkg/dpkg.cfg changed [not included]
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]