Francois Marier <[EMAIL PROTECTED]> writes:

> Hi,

> I'm trying to find a way to make a package depend on a specific version of
> another package, with a slight difference.

> I would like
>   package "foo" with upstream version 1.0.0.20070630
> to depend exactly on
>   package "bar" with upstream version 1.0.0
> and not work with
>   package bar with upstream version greater than 1.0.0

> So I guess it would be similar to requiring the same upstream version
> except but truncating the last part of package foo's version before
> doing the comparison.

> I've had a look at deb-substvars(5), but as far as I can see, I'd have
> to use a custom substitution in debian/substvars and update that one
> every time package bar is released.

You could dynamically generate the debian/substvars entry in debian/rules
by parsing the version number of the package (probably via
dpkg-parsechangelog) and chopping off the last part.

-- 
Russ Allbery ([EMAIL PROTECTED])               <http://www.eyrie.org/~eagle/>


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to