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

Bug#665378: dose-distcheck: dose-debcheck --explain returns incorrect version numbers



Package: dose-distcheck
Version: 2.9.14-3
Severity: normal

Try to feed this "package" on stdin to the following dose-debcheck
command:

Package: testtesttest
Version: 1
Architecture: all
Depends: gnu-fdisk (= 1.2.4-3+b1), util-linux (= 2.20.1-4)

dose-debcheck --successes --quiet \
  --bg lists/squeeze/Packages-squeeze-main-amd64 \
  --bg lists/wheezy/Packages-wheezy-main-amd64 --explain 2>/dev/null

report:
 -
  package: testtesttest
  version: 001
  architecture: all
  source: testtesttest (= 1)
  status: ok
  installationset:
   -
    package: testtesttest
    version: 001
    architecture: all
   -
    package: debianutils
    version: 3.04
    architecture: amd64
...

it turned '1' into '001' and '3.4' into '3.04'

While the version numbers with the inserted zeroes are equivalent
according to dpkg --comapre-versions, I can't turn the installationset
into arguments for apt-get as in
  apt-get install $package1=$version1 $package2=$version2 ...
because this will complain that it can't find debianutils at version 3.04

I also noticed an added debian revision of -0 once as in
  debianutils 3.4-0
which does not exist, either.

Its also not possible to work around this and remove extra leading zeroes
as there may be packages with versions like 1.01.001-0.1 in the archive.


Andreas



Reply to: