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

Re: How to obtain current package version number?



On Tue, 4 Mar 2003 17:34:47 +0100, Simon Richter <sjr@debian.org>
wrote:
>> Well, I wouldn't have posted without first consulting policy and
>> developer's reference. Section 6.4 doesn't seem to document any
>> maintainer script of the package being installed being called with the
>> new version number as a parameter, so I was actually hoping that dpkg
>> sends that information in the environment or somewhere else.
>
>You can pull it in using a substvar, I think.

That sounds interesting. Can you elaborate? I know that I can use
substvars in my control file to get automatic dependencies on the libs
I use, but how does that transfer to maintainer scripts?

Greetings
Marc

-- 
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber          |   " Questions are the         | Mailadresse im Header
Karlsruhe, Germany  |     Beginning of Wisdom "     | Fon: *49 721 966 32 15
Nordisch by Nature  | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29



Reply to: