saltstack/salt — pull request #2546 by archtaku (2012-11-14 03:45:53+00:00)
Title: Fix "variable referenced before assignment"

I inadvertently introduced a bug when I made changes to this module
a couple days ago. All repo-based installs would fail because of this
UnboundLocalError exception. I did not catch this because I only tested
package installs from an RPM file. Needless to say, I will be more
thorough in my future testing.

Also, I had changed the variable "sources" to "source" to match the
other package providers, but it was decided that other package providers
should be modified to accept multiple sources (currently, yumpkg.py is
the only provider with this feature). So, I have reverted that earlier
change and the kwarg is now called "sources" again. Sorry for the
back-and-forth with this.