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

Re: Taking over conffiles from other packages while cleaning up properly [Re: Problems detected: package initscripts left obsolete init.d script behind]



Am 08.02.2012 22:28, schrieb Michael Biebl:
Could you give a short example how postinst would look like for the case
that package foo is split int foo in version 1.0-1

Making the example a bit more verbose:

before the split:
binary package foo:
 /bin/foo
 /bin/bar
 /etc/foo.conf
 /etc/bar.conf
(both marked as conffiles)

after the split (done in version 1.0-1):
binary package foo:
 /bin/foo
 /etc/foo.conf
binary package bar:
 /bin/bar
 /etc/bar.conf


Package foo in version 1.0-1 does not have a dependency on bar, so bar is not guaranteed to be installed. There is also the case, where bar has been split off upstream into a separate src package, but I assume this can be handled equally.

Now I'm interested how the maintainer scripts have to look like, so we don't get any obsolete conffiles in foo.

Cheers,
Michael
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?


Reply to: