Package: libapt-pkg4.12 Severity: wishlist Hello
I notice today that deblistparser.cc(ParseDepends) has some internal logic for matching against architecture specification strings. This may be useful to other functions, not to mention frontends (searching by arch wildcard -- nice :-)) if it were exposed in the API rather than a private utility of one file. Attached is a crude example, using a class to cache the preparation and hide the details of the algorithm. You can probably come up with a better place and/or naming for this. The algorithm is defined in debian-policy (section 11.1), though may be useful in a more general sense -- I have omitted either 'pkg' or 'deb' prefix from the example. Regards
archspec.patch
Description: Binary data