Public bug reported:
Binary package hint: openoffice.org
Many of the OOo maintainer scripts have the following conffile munging
code (and in some of them it is even used, but certainly not in all of
them):
# Prepare to move a conffile without triggering a dpkg question
prep_rm_conffile() {
CONFFILE="$1"
if [ -e "$CONFFILE" ]; then
md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`"
old_md5sum="`dpkg-query -W -f='${Conffiles}' docbook-xml | grep
$CONFFILE | awk '{print $2}'`"
if [ "$md5sum" = "$old_md5sum" ]; then
mv "$CONFFILE" "$CONFFILE.${THIS_PACKAGE}-tmp"
fi
fi
}
rm_conffile_commit() {
CONFFILE="$1"
if [ -e $CONFFILE.${THIS_PACKAGE}-tmp ]; then
rm $CONFFILE.${THIS_PACKAGE}-tmp
fi
}
# Remove a no-longer used conffile
rm_conffile() {
CONFFILE="$1"
if [ -e "$CONFFILE" ]; then
md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`"
old_md5sum="`dpkg-query -W -f='${Conffiles}' docbook-xml | grep
$CONFFILE | awk '{print $2}'`"
if [ "$md5sum" != "$old_md5sum" ]; then
echo "Obsolete conffile $CONFFILE has been modified by you."
echo "Saving as $CONFFILE.dpkg-bak ..."
mv -f "$CONFFILE" "$CONFFILE".bak
else
echo "Removing obsolete conffile $CONFFILE ..."
rm -f "$CONFFILE"
fi
fi
}
Note the hardcoded docbook-xml here! Please correct that, and also
remove these functions from the maintainer scripts where they aren't
used.
** Affects: openoffice.org (Ubuntu)
Importance: Undecided
Status: New
--
bogus conffile munging code in maintainer scripts
https://bugs.launchpad.net/bugs/153595
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs