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

Bug#855954: autopkgtest: can't handle packages with a + in its name



Control: tag -1 pending

Hello Ralf, Antonio,

Antonio Terceiro [2017-02-23 17:10 -0300]:
> $ autopkgtest --apt-upgrade minisat+ -- lxc --sudo adt-sid-amd64
> [...]
> E: Version '1:2.2.1-5+b1' for 'minisat+' was not found

Ah, gotta love apt.. a --debug run shows what's going on:

+ apt-cache policy ^minisat+$
+ sed -n /Candidate:/ { s/^.* //; /none/d; p}
+ pkg_candidate=1:2.2.1-5+b1
+ [ -n 1:2.2.1-5+b1 ]

I have to do this ^$ wrapping as otherwise apt-cache policy does some sort of
substring matching. RE-magic chars allowed in package names are '.' and '+', so
these need to be escaped. Fixed in

  https://anonscm.debian.org/cgit/autopkgtest/autopkgtest.git/commit/?id=e3163e9cad34

(Don't look too closely at this shell hell, your eyes will pop out..)

Thanks,

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/autopkgtest-devel/attachments/20170223/2b48d48f/attachment.sig>


Reply to: