Home My Page Projects Dose: library and tools
Summary Activity Tracker Lists SCM Files

[#21165] off-by-one error in dose-builddebcheck

Date:
2017-02-03 15:04
Priority:
3
State:
Open
Submitted by:
Johannes Schauer (josch)
Assigned to:
Nobody (None)
Summary:
off-by-one error in dose-builddebcheck

Detailed description
To reproduce:

$ printf 'Package: foo\nVersion: 1\nArchitecture: amd64\n' > /tmp/Packages
$ touch /tmp/Sources
$ dose-builddebcheck --deb-native-arch=amd64 /tmp/Packages /tmp/Sources
(W)Input: Input file /tmp/Sources is empty
output-version: 1.2
native-architecture: amd64
binary-packages: 1
source-packages: 1
broken-packages: 0

Clearly, it should say that there are zero source packages in the output above. Another problem is the binary package count:

$ printf 'Package: foo\nVersion: 1\nArchitecture: any\n' > /tmp/Sources
$ dose-builddebcheck --deb-native-arch=amd64 /tmp/Packages /tmp/Sources
output-version: 1.2
native-architecture: amd64
binary-packages: 2
source-packages: 1
broken-packages: 1

Clearly, it should say that there is only one binary package. Instead it talks about two binary packages even though we just added one source package...

No Comments Have Been Posted

No Changes Have Been Made to This Item