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

Bug#102609: Wanted: dpkg option to consider all confflies in .deb new



reopen 102609 !
title dpkg: option to consider all conffiles different from previous versions
thanks

Scripsit Adam Heath
> On Fri, 31 Oct 2003, Henning Makholm wrote:

> > When one finds that one's attempt to hack some conffiles did not work,
> > there is no really good way to get dpkg to restore them to the
> > versions shipped in the .deb, unless one has been cautious enough to
> > take backups of them oneself.

> dpkg --force-confnew

No:

# echo wrong things here > /etc/reportbug.conf
# dpkg -i --force-confnew /var/cache/apt/archives/reportbug_2.36_all.deb
(Reading database ... 51783 files and directories currently installed.)
Preparing to replace reportbug 2.36 (using .../reportbug_2.36_all.deb) ...
Unpacking replacement reportbug ...
Setting up reportbug (2.36) ...

# cat /etc/reportbug.conf
wrong things here
# 

What I'm talking about is something that makes dpkg act as it would if
the conffile in the .deb I'm installing is different from the conffile
in the last .deb that dpkg installed. If that were the case, dpkg would
offer to install the version in the .deb, and/or show me diffs of my
bad version versus the one in the .deb - the works.

--force-confnew is irrelevant. It just answers questions for me
automatically. The wish is to have a way to get dpkg to *ask* the
question in the first place. (I can provoke it by manually modifying
the old md5sum for the conffile in /var/lib/dpkg/status, but that is
hardly something that should be recommended practise.)

-- 
Henning Makholm                        "Nej, hvor er vi altså heldige! Længe
                                      leve vor Buxgører Sansibar Bastelvel!"



Reply to: