@@ -92,6 +92,12 @@ the C<perls> configuration setting.
9292If there are modified files, added files, or extra files so that
9393source control complains, fail.
9494
95+ =item Check that any GPG signatures are correct
96+
97+ If C<gpg_signatures > is present in the config, load
98+ L<Module::Release::VerifyGPGSignature> and verify the configured
99+ signatures.
100+
95101=item Upload to PAUSE
96102
97103This program used to use FTP uploads, but PAUSE has turned off that feature.
@@ -122,7 +128,7 @@ in the configuration file
122128Specify the F<Changes> file entry on the command line. If STRING does
123129not start with a C<* > , one will be added to the start along with a space.
124130
125- release -C " some change"
131+ release -c "* some change"
126132
127133translates to the F<Changes> entry with the date and one bullet item:
128134
@@ -460,13 +466,14 @@ sub usage {
460466 my $err = shift and select STDERR ;
461467 print <<"USE" ;
462468
463- Use: release -aCdDhkmptTvV [-j[N]] [ LOCAL_FILE [ REMOTE_FILE ] ]
469+ Use: release -acCdDhkmptTvV [-j[N]] [ LOCAL_FILE [ REMOTE_FILE ] ]
464470
465471Will upload current release LOCAL_FILE, naming it REMOTE_FILE. Will
466472get LOCAL_FILE and REMOTE_FILE automatically (using same name for
467473both) if not supplied.
468474
469475 -a Set AUTOMATED_TESTING to true
476+ -c Changes entry as a string on the command line
470477 -C Skip Changes file (useful for re-running botched releases)
471478 -d Print extra debugging information
472479 -D Skip building the dist
@@ -663,7 +670,7 @@ $release->_debug( "dist version is <$Version>\n" );
663670
664671# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
665672# check anything signed by GPG
666- unless ( $release -> config-> gpg_signatures ) {
673+ if ( $release -> config-> gpg_signatures ) {
667674 $release -> _print(" ============ Checking GPG signatures\n " );
668675 $release -> load_mixin(' Module::Release::VerifyGPGSignature' );
669676 $release -> check_all_gpg_signatures;
@@ -799,9 +806,9 @@ unless( $opts{C} or $release->config->skip_changes ) {
799806 }
800807 };
801808
802- my $vcs_commit = ` $ command "$commit_message " 2>&1 ` ;
809+ my $output = $release -> run( qq( $ command "$commit_message ") ) ;
803810
804- $release -> _print( $vcs_commit );
811+ $release -> _print( $output );
805812 }
806813else {
807814 $release -> _print( " Skipping Changes file\n " );
0 commit comments