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

Re: Few questions



On Mon, Jan 29, 2007 at 10:00:13PM +0800, Thomas Goirand wrote:
> Neil Williams wrote:
> > On Mon, 29 Jan 2007 16:08:39 +0800
> > Thomas Goirand <thomas@goirand.fr> wrote:
> > 
> >> I have few questions that would help me to solve things in my
> >> package. I have package1 and package2 being same but with different
> >> dependencies, so the user can choose between them.
> >>
> >> First, if my package produces many binaryies, is it ok to do symlinks
> >> of the postinst if they are same. Like:
> >>
> >> debian/package1.postinst would link to debian/package2.postinst
> > 
> > What happens then if the user chooses to install package 1 without
> > package 2?
> 
> My control file is done this way:
> 
> Package: package1
> Replaces: package2
> [...]
> 
> Package: package2
> Replaces: package1
> 
> The only thing that differs from both packages are dependencies, nothing
> else.
You said there is also a Provides?

> > Can the user choose to install package1 and package2 on the same system
> > or have you got a Conflict: setup?
> 
> They Replaces: each other.
It isn't clear to me that your use of Replaces makes sense.  Note that if you
don't also have a Conflicts, this just means that it is not an error that
package 1 and 2 contain the same pathname; the file on disk will be whatever is
included by the the more-recently installed package, and the other package will
no longer be recorded as an "owner" of that file.  The packages will be
co-installable.

Justin



Reply to: