Author: assaf
Date: Wed Oct  8 14:38:17 2008
New Revision: 702999

URL: http://svn.apache.org/viewvc?rev=702999&view=rev
Log:
Added gpg_user variable check.

Modified:
    incubator/buildr/trunk/rakelib/apache.rake

Modified: incubator/buildr/trunk/rakelib/apache.rake
URL: 
http://svn.apache.org/viewvc/incubator/buildr/trunk/rakelib/apache.rake?rev=702999&r1=702998&r2=702999&view=diff
==============================================================================
--- incubator/buildr/trunk/rakelib/apache.rake (original)
+++ incubator/buildr/trunk/rakelib/apache.rake Wed Oct  8 14:38:17 2008
@@ -49,7 +49,10 @@
   end
   
   # Staging checks specific for Apache.
-  task 'check'=>'license'
+  task 'check'=>'license' do |task, args|
+    args.gpg_user or fail "Please run with gpg_user=<argument for gpg 
--local-user>"
+    fail "No GPG user #{args.gpg_user}" if `gpg --list-keys 
#{args.gpg_user}`.empty?
+  end
 
 
   file 'staged/distro'=>'package' do


Reply via email to