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 Development

 
 
LinkBack Thread Tools
 
Old 02-02-2010, 09:04 PM
Frank Küster
 
Default Using ucf other than from maintainer scripts

Hi,

I am wondering whether it is possible to use ucf from a script that is
provided by a package to simplify local changes to a configuration file.

The case I'm thinking of is texconfig, a script in texlive-binaries that
(among other things) allows to set the default paper size for a couple
of applications. The files that are changed to accomplish that are
currently conffiles. I want to use a hook in /etc/libpaper.d/ to set
the correct default paper, but that would mean to change conffiles in
maintainer scripts (maybe not by the letter of the rule, since a hook is
not a maintainer script, but by its meaning, and by dpkg's annyoing
questions).

The obvious way out is to use ucf to handle the changes - but of course
the texconfig script can also be invoked manually by the admin. Is it
okay to use ucf in this case?

The script would always take the existing version, apply its changes to
the papersize setting, and "commit" it with ucf - hence no
three-way-merge situation is possible here. When other settings in that
files, besides papersize, change in an upload, that would be handled the
usual ucf way by texlive-binaries' postinst script.

Would that work?

TIA, Frank

P.S. In that case, can I pass "--debconf-ok" to ucf even for the case
where it is invoked manually by the admin with no debconf already
running; I mean, will debconf still *check* whether there's a debconf
instance running?
--
Dr. Frank Küster
Debian Developer (TeXLive)
VCD Aschaffenburg-Miltenberg, ADFC Miltenberg
B90/Grüne KV Miltenberg


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 03:06 PM.

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