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

Re: RFC: new approach to handling conffiles



hiya,

On Saturday 08 March 2008 12:27:58 pm Martin Uecker wrote:

> Please do not use a md5sum. Having the original conf file installed
> as reference is usefull for the admin too and making the path a md5sum
> just makes it harder too find. Having the full path is interesting for
> other reasons, because it makes this upstream-etc directory similar to
> real one which is usefull for comparison.

i agree this would make life easier for the local admin.  however, i think if 
there's any other reason why the checksum based implementation is easier/more 
reliable for  dpkg to handle, then i would still suggest that approach, as 
all the necessary information is available for a small helper utility or 
shell script to reconstruct the directory hierarchy for a diff.  i.e., the 
following one-liner:

sudo xargs -n1 -i sh -c 'diff -Nu {} /var/lib/dpkg/conffiles/foo/`printf {} | 
md5sum | cut -d" " -f1` && echo "{}: unchanged"' 
< /var/lib/dpkg/info/foo.conffiles

which in its ugliness could be hidden behind a command name 
like "dpkg-conffile diff foo" or similar. but regardless, i'm happy to keep 
the implementation to whichever direction the dpkg folks feel is better.


	sean

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: