You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by Sam Ruby <ru...@apache.org> on 2016/03/02 16:46:09 UTC

[whimsy.git] [1/1] Commit 176460f: download member applications

Commit 176460fae3a56de1945e9da3b0572e5924f6f4fd:
    download member applications


Branch: refs/heads/master
Author: Sam Ruby <ru...@intertwingly.net>
Committer: Sam Ruby <ru...@intertwingly.net>
Pusher: rubys <ru...@apache.org>

------------------------------------------------------------
repository.yml                                               | +++ 
www/roster/models/committer.rb                               | + -
------------------------------------------------------------
5 changes: 4 additions, 1 deletions.
------------------------------------------------------------


diff --git a/repository.yml b/repository.yml
index d8272fb..1aac207 100644
--- a/repository.yml
+++ b/repository.yml
@@ -44,6 +44,9 @@
   incubator_site_author:
     url: http://svn.apache.org/repos/asf/incubator/public/trunk/content
 
+  member_apps:
+    url: private/documents/member_apps
+
   minutes:
     url: asf/infrastructure/site/trunk/content/foundation/records/minutes
 
diff --git a/www/roster/models/committer.rb b/www/roster/models/committer.rb
index e24b7b8..ba00a53 100644
--- a/www/roster/models/committer.rb
+++ b/www/roster/models/committer.rb
@@ -84,7 +84,7 @@ def self.serialize(id, env)
 
         apps = ASF::SVN['private/documents/member_apps']
         memapp = member[:info].split("\n").first.downcase.gsub(/\s/, '-')
-        if File.exist? File.join(apps, memapp + '.pdf')
+        if apps and File.exist? File.join(apps, memapp + '.pdf')
           response[:forms][:member] = memapp + '.pdf'
         end
       else