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

Re: depends for *exact* upstream matches?



Mark Eichin <eichin@cygnus.com> writes:

> is
> 	Depends: gcc (>= 2.7.2.1), gcc (<< 2.7.2.2)
> a correct way to indicate that I want exactly 2.7.2.1 upstream
> release, but I don't care what debian revision?

It'll work, but might be thwarted.  What if gcc releases 2.7.2.1.1?
After all, they released 2.7.2.1 after 2.7.2.  In addition to the
above dependency, you can check in the postinst.

set -e
dpkg -s gcc | \
perl -ne 'die "wrong version\n" if /^Version:\s*(.*)-[^-]*/ && $1 ne "2.7.2.1"'


Guy


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: