saltstack/salt — pull request #15343 by SEJeff (2014-08-28 03:45:36+00:00)
Title: Allow pkg.install to install packages with an arch in the name

Before:

```bash
(ve)[root@omniscience salt]# scripts/salt-call --local state.single pkg.installed name=gpfs.gplbin-2.6.32-279.31.1.el6.x86_64
[INFO ] Executing state pkg.installed for gpfs.gplbin-2.6.32-279.31.1.el6.x86_64
[INFO ] Executing command 'repoquery --plugins --queryformat="%{NAME}_|-%{VERSION}_|-%{RELEASE}_|-%{ARCH}_|-%{REPOID}" --all --pkgnarrow=installed' in directory '/root'
[INFO ] Executing command 'repoquery --plugins --queryformat="%{NAME}_|-%{ARCH}" --pkgnarrow=all --all' in directory '/root'
[INFO ] Executing command 'repoquery --plugins --queryformat="%{NAME}_|-%{VERSION}_|-%{RELEASE}_|-%{ARCH}_|-%{REPOID}" --all --quiet --whatprovides gpfs.gplbin-2.6.32-279.31.1.el6' in directory '/root'
[ERROR ] The following package(s) were not found, and no possible matches were found in the package db: gpfs.gplbin-2.6.32-279.31.1.el6
[INFO ] Completed state [gpfs.gplbin-2.6.32-279.31.1.el6.x86_64] at time 22:42:33.946103
local:
----------
ID: gpfs.gplbin-2.6.32-279.31.1.el6.x86_64
Function: pkg.installed
Result: False
Comment: The following package(s) were not found, and no possible matches were found in the package db: gpfs.gplbin-2.6.32-279.31.1.el6
... snip ...
```

After this patch on Fedora 20 and RHEL7:

```bash
(ve)[root@omniscience salt]# scripts/salt-call --local state.single pkg.installed name=gpfs.gplbin-2.6.32-279.31.1.el6.x86_64 normalize=False
[INFO ] Executing state pkg.installed for gpfs.gplbin-2.6.32-279.31.1.el6.x86_64
[INFO ] Executing command 'repoquery --plugins --queryformat="%{NAME}_|-%{VERSION}_|-%{RELEASE}_|-%{ARCH}_|-%{REPOID}" --all --pkgnarrow=installed' in directory '/root'
[INFO ] Executing command 'repoquery --plugins --queryformat="%{NAME}_|-%{ARCH}" --pkgnarrow=all --all' in directory '/root'
[INFO ] Executing command 'repoquery --plugins --queryformat="%{NAME}_|-%{VERSION}_|-%{RELEASE}_|-%{ARCH}_|-%{REPOID}" --all --quiet --whatprovides gpfs.gplbin-2.6.32-279.31.1.el6.x86_64' in directory '/root'
[INFO ] Executing command 'yum -q clean expire-cache && yum -q check-update ' in directory '/root'
[INFO ] Executing command 'yum -y install gpfs.gplbin-2.6.32-279.31.1.el6.x86_64' in directory '/root'
[INFO ] Executing command 'repoquery --plugins --queryformat="%{NAME}_|-%{VERSION}_|-%{RELEASE}_|-%{ARCH}_|-%{REPOID}" --all --pkgnarrow=installed' in directory '/root'
[INFO ] Installed Packages:
gpfs.gplbin-2.6.32-279.31.1.el6.x86_64 changed from absent to 0.7.1-1.fc20
... snip ...
```

I also ran `make html` in the doc directory to ensure the documentation for these bits rendered properly. Let me know if this is acceptable. I would really like to see this make it into helium as it affects our ability to roll out bits for our hpc environment using salt.