RE: Question about variably depending packages
I accomplish this by
In the control file for test-application_1_i386.deb
Depends: test-database (=@DEB-VERSION@) | test-database-server-installed,
test-storage (=@DEB-VERSION@) | test-storage-server-installed,
Then if the empty package test-database-server-installed is not installed
it will always get test-database package.
Thanks for your help!
>From: Goswin von Brederlow [mailto:firstname.lastname@example.org]
>Sent: Tuesday, July 18, 2006 10:37 AM
>To: Jerry DuVal
>Subject: Re: Question about variably depending packages
>"Jerry DuVal" <email@example.com> writes:
>> Can a package have a variable depends in the control file? :p>
>Yes. But not the way you mean.
>What you mean is that the depends should change depending on a config
>file on the system. That is not possible. The file could be changed at
>any time and that would alter the depends and break the system. That
>just isn't supported.
>> I have created the following packages:p>
>You could have a 4th package test-remotedb that asks for the hostname
>of the remote db during configuration (with debconf) and enters that
>IP into the config file. The test-database package on the other hand
>would enter localhost into the config file. test-remotedb and
>test-database could conflict.
>PS: use ucf for config file handling, don't include the file as
>To UNSUBSCRIBE, email to debian-mentors-REQUEST@lists.debian.org
>with a subject of "unsubscribe". Trouble? Contact