You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by do...@apache.org on 2014/06/24 14:08:45 UTC

git commit: Handle the scenario where packages do not necessarily have a pom

Repository: buildr
Updated Branches:
  refs/heads/master be2fa064b -> 1629176f6


Handle the scenario where packages do not necessarily have a pom


Project: http://git-wip-us.apache.org/repos/asf/buildr/repo
Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/1629176f
Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/1629176f
Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/1629176f

Branch: refs/heads/master
Commit: 1629176f6a9d64c05e8b268a1aa69e657b7ff14b
Parents: be2fa06
Author: Peter Donald <pe...@realityforge.org>
Authored: Tue Jun 24 22:08:36 2014 +1000
Committer: Peter Donald <pe...@realityforge.org>
Committed: Tue Jun 24 22:08:36 2014 +1000

----------------------------------------------------------------------
 addon/buildr/gpg.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/buildr/blob/1629176f/addon/buildr/gpg.rb
----------------------------------------------------------------------
diff --git a/addon/buildr/gpg.rb b/addon/buildr/gpg.rb
index 3a78807..bad061d 100644
--- a/addon/buildr/gpg.rb
+++ b/addon/buildr/gpg.rb
@@ -65,7 +65,7 @@ module Buildr
 
       def sign_and_upload_all_packages(project)
         project.packages.each { |pkg| Buildr::GPG.sign_and_upload(project, pkg) }
-        project.packages.map { |pkg| pkg.pom }.compact.uniq.each { |pom| Buildr::GPG.sign_and_upload(project, pom) }
+        project.packages.select {|pkg| pkg.respond_to?(:pom) }.map { |pkg| pkg.pom }.compact.uniq.each { |pom| Buildr::GPG.sign_and_upload(project, pom) }
       end
     end