Skip to content

syn: d/tests/control not synchronized with d/changelog

Hi,

I was working on package transitions in Ubuntu and noticed syn has been failing autopkgtests, probably because d/tests/control uses 2.0.16 while the version in d/changelog is 2.0.18. The first line in src/syn/debian/tests/control probably needs to be changed to use 2.0.18.

I didn't try to remove the need to specify a version since that's not a piece of code I am familiar with (and I'm not sure it could be made to work in 100% of cases). I'm wondering if a commit-hook would be better.

While at it, I also had a look at other packages and wrote the bash/zsh script below and didn't find other inconsistencies.

for i in */; do if [ -e ${i}/debian/tests/control ]; then v="$(dpkg-parsechangelog -l ${i}/debian/changelog -S Version)"; vt="$(awk '/^Test-Command: .usr.share.cargo.bin.cargo-auto-test/ { print $4 }' < ${i}/debian/tests/control | sort | uniq)"; if [ -n "${vt}" ]; then echo $i $v ${vt}; fi; fi; done | column -t

Using this to compare versions in a commit hook would need a small improvement in order to transform version "1.2.3-1" into "1.2.3". Still, it wouldn't be perfect but it looks like it should be good in > 99% of cases.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information