Hi,

On Sun, 23 May 2010, Joey Hess wrote:
> It's not clear from dpkg-maintscript-helper(1) if the package
> version is optional. Omitting the package version can be useful:

It was not meant to be optional but I would gladly make it optional
if everything works as expected.

After review, I think I have to change the way a modified obsolete
conffile is handled otherwise any later abort-upgrade would reinstall
the obsolete conffile in place.

> * If doing as the man page suggests and avoiding a pre-depends
>   by testing dpkg-maintscript-helper supports.
>   Here you'd presumably still want to let the action happen
>   in a later upgrade if the old conffile is still present.
>   (At least when removing an old conffile.. doing that when
>   renaming a conffile is probably unsafe.)

What exactly do you fear when renaming a conffile?

> * In debhelper, which needs to move conffiles sometimes, and doesn't
>   have package version information available.

I hope you will provide a way for the maintainer to supply the required
version.

> Based on my reading of dpkg-maintscript-helper, if a version of ""
> is specified, since it uses le-nl to compare versions, it will
> always run the action, and should handle these cases.

I used le-nl so that $2 le-nl "<version>" would evaluate to true when $2
is empty (case of $1 == "install").

Cheers,
-- 
Raphaƫl Hertzog

Like what I do? Sponsor me: http://ouaza.com/wp/2010/01/05/5-years-of-freexian/
My Debian goals: http://ouaza.com/wp/2010/01/09/debian-related-goals-for-2010/



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to