On 2013-03-03 02:04, Dominic Hargreaves wrote:
> On Sat, Mar 02, 2013 at 03:57:50PM +0000, Dominic Hargreaves wrote:
>> Dear maintainer,
>>
>> I've prepared an NMU for syslog-ng (versioned as 3.3.6-1.1) and
>> uploaded it to DELAYED/4. Please feel free to tell me if I
>> should delay it longer.
> 
> Note: this patch does seem to trigger a dpkg prompt about a changed
> config file (since the preinst removes the symlinks). Without the
> preinst doing that, however, the new files don't get installed at
> all.
> 
> At this point I'm not inclined to cancel the NMU, as it's an
> improvement over what we currently have, but I would welcome advice
> on whether it's possible to avoid the dpkg prompt in this edge case.

I see three possibilities:

* install the new conffiles with a new name
* preinst: remove the symlink and create a file that matches dpkg's
expected md5sum - which probably means querying for the expected md5 and
embedding several old copies in the preinst script to allow smooth upgrades
* manage the configuration file with ucf

I'd prefer the second. It has the most work to do now, but it's a
temporary fix, i.e. it can be removed again for jessie or jessie+1.


Andreas


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to