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

Bug#674022: dpkg: error: --compare-versions takes three arguments: <version> <relation> <version>



close 674022 texlive-base/2012.20120529-1
thanks

I thought I had produced the bug, but I was wrong about which version of 
texlive-base I had produced it with.  Apologies for the confusion.

I still think the logic here is not what was intended.  Because of the 
underquoting, [ -n $old_version ] _always_ returns true, so that the 
--compare-versions test is now always short-circuited.  The apparent 
intention is
  if [ -n "$old_version" ] && dpkg --compare-versions "$old_version" le 2011.20120322-2
                           ^^
which is equivalent to
  if dpkg --compare-versions "$old_version" le-nl 2011.20120322-2
                                              ^^^
Since that’s a different bug, I will close this again and let you decide 
what to do.

Anders



Reply to: