Wouter Verhelst <wou...@debian.org> writes: > On Tue, Jan 12, 2016 at 03:34:20PM +0100, Philip Hands wrote: >> Josselin Mouette <j...@debian.org> writes: >> >> > Dmitrii Kashin <d.kas...@solarsecurity.ru> wrote: >> >> The main thing is we can describe dependency as `pkg (= "2.0")' and yum >> >> will >> >> install package `pkg' of version "2.0" with the maximum revision >> >> found. And also we can write dependency specifically with revision, >> >> f.e. `pkg (= "2.0-43")' and yum will install specifically "2.0-43". >> > >> >> Well, now I'm trying to repack one project (my job) from centos to >> >> debian. And I wonder what would be the most correct way for such kind of >> >> dependencies. >> >> >> >> 1) I could not write dependency operator at all. >> >> 2) I could write >= and version (f.e. "2.0") >> > >> > You can write, for example: >> > Depends: pkg (>= 2.0), pkg (<= 2.0.~) >> >> That (<= 2.0.~) should have been (<< 3.0~) > > I thought so too at first, but no, you're wrong :-) > > 2.1-43 would also satisfy pkg (<< 3.0~), which is not intended. For that > matter, 2.0.1-1 would also satisfy that. Instead, you want to have > something that sorts before that 1. That is the ~. So, the 2.0.~ is > correct.
Ah yes, good point. Cheers, Phil. -- |)| Philip Hands [+44 (0)20 8530 9560] HANDS.COM Ltd. |-| http://www.hands.com/ http://ftp.uk.debian.org/ |(| Hugo-Klemm-Strasse 34, 21075 Hamburg, GERMANY
signature.asc
Description: PGP signature