boxgrinder/boxgrinder-build — pull request #17 by ryanuber (2013-07-24 23:52:00+00:00)
Title: Recreate the RPM database conditionally by comparing RPM versions

Recreating the RPM database can be extremely time consuming. Since that is the case, it would be good to only run the recreation when absolutely necessary. The version of RPM does not necessarily change with each OS version. The only true comparison one can do to verify the need to recreate the RPM database is to compare the version of RPM running on the host operating system against the version of RPM running on the guest operating system. This patch does so using `rpm --version` on both the host and guest.