FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian dpkg

 
 
LinkBack Thread Tools
 
Old 05-05-2011, 01:11 PM
Faheem Mitha
 
Default --force-confnew does not behave as expected

I modified /etc/init.d/apache2 in apache2.2-common (see following patch)
and then ran


$ sudo apt-get -o Dpkg::Options::="--force-confnew" install --reinstall*apache2.2-common

According to my understanding of the documentation, /etc/init.d/apache2
should be reverted to its original form in the package, per the
--force-confnew flag, but this does not happen. It seems unlikely that
this is a bug, and it seems more likely I am misunderstanding the
documentation and not using the right command, so I'm writing to ask for
clarification. Please CC me on any reply. Thanks.


Regards, Faheem

--- apache2~ 2011-01-01 21:57:08.000000000 +0000
+++ apache2 2011-05-05 12:59:21.000000000 +0000
@@ -8,7 +8,7 @@
# X-Interactive: true
# Short-Description: Start/stop apache2 web server
### END INIT INFO
-
+sh .
set -e

if [ -n "$APACHE_CONFDIR" ] ; then
 
Old 05-05-2011, 02:10 PM
Raphael Hertzog
 
Default --force-confnew does not behave as expected

Hi,

On Thu, 05 May 2011, Faheem Mitha wrote:
> According to my understanding of the documentation,
> /etc/init.d/apache2 should be reverted to its original form in the
> package, per the --force-confnew flag, but this does not happen. It
> seems unlikely that this is a bug, and it seems more likely I am
> misunderstanding the documentation and not using the right command,
> so I'm writing to ask for clarification. Please CC me on any reply.

You are misunderstanding the doc indeed, and you should have asked on
debian-user@lists.debian.org, not here.

The flag only matters when the package tries to install a new version of
the configuration file, but here you're re-installing the same package
and thus there's no new version of the config file compared to the
previous installation.

You also need --force-confask to force dpkg to re-try installing the file.

Cheers,
--
Raphaël Hertzog ◈ Debian Developer

Follow my Debian News ▶ http://RaphaelHertzog.com (English)
▶ http://RaphaelHertzog.fr (Français)


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110505141006.GB29070@rivendell.home.ouaza.com">h ttp://lists.debian.org/20110505141006.GB29070@rivendell.home.ouaza.com
 
Old 05-05-2011, 02:10 PM
Raphael Hertzog
 
Default --force-confnew does not behave as expected

Hi,

On Thu, 05 May 2011, Faheem Mitha wrote:
> According to my understanding of the documentation,
> /etc/init.d/apache2 should be reverted to its original form in the
> package, per the --force-confnew flag, but this does not happen. It
> seems unlikely that this is a bug, and it seems more likely I am
> misunderstanding the documentation and not using the right command,
> so I'm writing to ask for clarification. Please CC me on any reply.

You are misunderstanding the doc indeed, and you should have asked on
debian-user@lists.debian.org, not here.

The flag only matters when the package tries to install a new version of
the configuration file, but here you're re-installing the same package
and thus there's no new version of the config file compared to the
previous installation.

You also need --force-confask to force dpkg to re-try installing the file.

Cheers,
--
Raphaël Hertzog ◈ Debian Developer

Follow my Debian News ▶ http://RaphaelHertzog.com (English)
▶ http://RaphaelHertzog.fr (Français)


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110505141006.GB29070@rivendell.home.ouaza.com">h ttp://lists.debian.org/20110505141006.GB29070@rivendell.home.ouaza.com
 

Thread Tools




All times are GMT. The time now is 06:46 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org