#776337 apt: document how multiple contidions in apt_preferences can be combined

Package:
src:apt
Source:
apt
Submitter:
Christoph Anton Mitterer
Date:
2015-01-27 02:33:04 UTC
Severity:
wishlist
#776337#5
Date:
2015-01-27 00:51:57 UTC
From:
To:
Hi.

Right now apt_preferences(5) doesn't really clearly explain
how multiple conditions for pins can be combined (i.e. via
logical AND).

The manpage only gives some implicit documentation via
specifiv examples, e.g.
  Pin: release a=stable, v=8

IMHO it would be nice if it would be more generally explained:
- how multiple conditions are evaluated (i.e. AND)
- how they're syntactically specified, e.g.
  separating them via comma seems to work, like above:
    release a=stable, v=8
  but
    release a=stable, release v=8
  seems to work as well?
  Also the question how to mix different condition types,
  e.g. release with version or origin.

Cheers,
Chris.

#776337#10
Date:
2015-01-27 02:30:56 UTC
From:
To:
Also please have a look at bug #776341, which is why I think that the
following should perhaps be clarified a bit more:
- that multiple matches of the same field are not supported. e.g.
  release a=testing,a=unstable
  will neither have the effect of AND nor OR, it is simply "the last one
  wins"
- how the POSIX EREs work in practise (see #776341).


Cheers,
Chris.