Bug#670679: python-debian: deb822 can't parse foreign architecture (package:any) relationships
hertzog at debian.org
Wed Jul 2 20:09:00 UTC 2014
On Mon, 08 Oct 2012, John Wright wrote:
> Thanks for the patchset. I've rebased it against our tip, and combined
> patches 2 and 3 so that tests pass at each commit. Can you take a look
> at the branch here:
> If this looks good to you, I will merge this into our master branch and
> close the bug. Otherwise, would you mind pushing a new branch?
Can we get a fix for this pushed to unstable/testing and then backported
to wheezy ?
We have some infrastructure relying on this module to parse dependencies
(my use case: backend scripts of tracker.debian.org) and we currently
get tons of warnings like this:
deb822.py: WARNING: cannot parse package relationship "python:any (>= 2.6.6-7~)", returning it raw
It's really annoying.
Note that dpkg is accepting any valid architecture string and I suggest
that you fix the code to accept the same (see parse_string() in
/usr/share/perl5/Dpkg/Deps.pm), basically the regex for the architecture
is a simple: [a-zA-Z0-9][a-zA-Z0-9-]*
You could also add support for "restrictions" which will be used in the
future to implement bootstrapping build profiles (that is content in <>
put after the dependency).
Raphaël Hertzog ◈ Debian Developer
Discover the Debian Administrator's Handbook:
More information about the pkg-python-debian-maint