saltstack/salt — pull request #2569 by mrtizmo (2012-11-15 21:07:42+00:00)
Title: Fixes #2464 check for i386 pkgs on 64bit systems

@UtahDave's fix was close; it appended the ':arch' instead of removing it to do the search within pkgs. I also generalized the case to fit arch's other than i386.

The problem in detail was that you need to use packagename:arch when running list_pkgs. However in the dict returned by list_pkgs, you will find "packagename" and not "packagename:arch". This is why I am stripping the ":arch" off before searching the dict to find the package.