8371: Rails postrm only fires after removing last RPM. 8371-centos-postrm-bugfix-wip
authorBrett Smith <brett@curoverse.com>
Fri, 26 Feb 2016 23:20:41 +0000 (18:20 -0500)
committerBrett Smith <brett@curoverse.com>
Fri, 26 Feb 2016 23:21:41 +0000 (18:21 -0500)
commitacab2f7c338f245baa7e5d9dca57476d12d863bf
treec5a3b589583460096aae4995626502f82a12a2b7
parentec60d7fd235835947efd8dba97213015d37b036a
8371: Rails postrm only fires after removing last RPM.

This prevents removing the package files when the postrm script is
called for the old version of a package after doing an upgrade.

RPM post- scripts are called with $1 as the number of versions of the
package currently installed on the system.  0 means the last version
has been removed.  We only want to remove files in that case.
jenkins/rails-package-scripts/postrm.sh