support versioned provides as implemented by dpkg
authorDavid Kalnischkies <david@kalnischkies.de>
Sat, 16 Aug 2014 14:33:46 +0000 (16:33 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Tue, 26 Aug 2014 18:49:48 +0000 (20:49 +0200)
commit40faab46c4d5fa766c80090f0fdb54120dbb37f2
tree085f06e4761d06060240c7d3ad95c64505ab5be4
parentc53cf70da31a3c59675af8c5425b54433793dc8d
support versioned provides as implemented by dpkg

APT supported versioned provides for a long while in an attempt to get
it working with rpm. While this support is old, we can be relatively
sure that it works as versioned provides are used internally to make
Multi-Arch:foreign work.

Previous versions of apt will print a warning indicating that the
versioned provides is ignored, so that something which "Provides: foo (=
2)" doesn't provide anything.

Note that dpkg does allow only a equals-relation in the provides line
as anything else is deemed too complex. apt doesn't support anything
else either and such a support would require potentially big changes.

Closes: 758153
apt-pkg/deb/deblistparser.cc
test/integration/test-bug-758153-versioned-provides-support [new file with mode: 0755]