saltstack/salt — pull request #3087 by archtaku (2012-12-31 10:23:27+00:00)
Title: Add --disablerepo support for yumpkg modules

As part of this commit, the following changes were also made:

1) The "repo" argument for the package provider modules and the pkg
state has been renamed to "fromrepo". If the "repo" keyword argument
is specified and "fromrepo" was not, then the value from "repo" will
be used, in order to provide backwards compatibility. Otherwise the
"repo" argument is ignored.

2) The "repo" argument to brew.py was not used for anything. It has been
removed.

3) yumpkg{,5}.py have been modified so that they both accept
"enablerepo" and "disablerepo" arguments, in order to allow these
yum-specific arguments to be passed through to yum. These args will
be ignored however, if "fromrepo" or "repo" is passed.

4) The example return dicts in much of the pkg providers had invalid
data structures in them. Corrected these so that the docs make more
sense.