craigwblake / redline

Pure Java Rpm Library
http://redline-rpm.org
MIT License
128 stars 97 forks source link

Make RPM task not fail when the signature cannot be read #77

Closed alexouzounis closed 9 years ago

alexouzounis commented 9 years ago

Instead of falling miserably when the signature cannot be generated, catch the exception, print a warning message and skip the RPM signing.

The scenario I am trying to solve is that an ant task has the private key file and passphrase defined. The passphrase is set by a property which by default is set to empty. Trusted computers pass in the passphrase by overriding the property that defines it whereas untrusted do not. Expected result is that both computers can create RPMs successfully, trusted ones created signed RPMs, untrusted ones create unsigned RPMs