buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject svn commit: r1422474 - /buildr/trunk/addon/buildr/gpg.rb
Date Sun, 16 Dec 2012 06:50:46 GMT
Author: donaldp
Date: Sun Dec 16 06:50:45 2012
New Revision: 1422474

URL: http://svn.apache.org/viewvc?rev=1422474&view=rev
Log:
Rework the gpg addon to remove the need to set the GPG_USER environment variable unless invoking
the upload task

Modified:
    buildr/trunk/addon/buildr/gpg.rb

Modified: buildr/trunk/addon/buildr/gpg.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/addon/buildr/gpg.rb?rev=1422474&r1=1422473&r2=1422474&view=diff
==============================================================================
--- buildr/trunk/addon/buildr/gpg.rb (original)
+++ buildr/trunk/addon/buildr/gpg.rb Sun Dec 16 06:50:45 2012
@@ -52,10 +52,9 @@ module Buildr
       end
 
       def sign_and_upload(project, pkg)
-        sign = sign_task(pkg)
-        project.task(:upload).enhance([sign.name]) do
+        project.task(:upload).enhance do
           artifact = Buildr.artifact(pkg.to_spec_hash.merge(:type => "#{pkg.type}.asc"))
-          artifact.from(sign)
+          artifact.from(sign_task(pkg))
           artifact.invoke
           artifact.upload
         end



Mime
View raw message