[Pkg-mozext-commits] [adblock-plus] 227/464: Made add-on homepage optional

David Prévot taffit at moszumanska.debian.org
Tue Jul 22 20:44:20 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository adblock-plus.

commit 4f323820773c77642936f3271dcdbbe60ffb56d6
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Wed Feb 22 16:49:11 2012 +0100

    Made add-on homepage optional
---
 install.rdf.tmpl | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/install.rdf.tmpl b/install.rdf.tmpl
index e4a08d6..b336972 100644
--- a/install.rdf.tmpl
+++ b/install.rdf.tmpl
@@ -29,7 +29,9 @@
     <em:name>{{localeMetadata[defaultLocale].name}}</em:name>
     <em:description>{{localeMetadata[defaultLocale].description}}</em:description>
     &meta;
+    {%- if metadata.has_option('homepage', 'default') %}
     <em:homepageURL>{{metadata.get('homepage', 'default')}}</em:homepageURL>
+    {%- endif %}
     <em:type>2</em:type>
     {%- if metadata.has_option('general', 'restartless') %}
     <em:bootstrap>true</em:bootstrap>
@@ -78,6 +80,7 @@
             {{localeMetadata[defaultLocale].description}}
           {%- endif -%}
         </em:description>
+        {%- if metadata.has_option('homepage', 'default') %}
         <em:homepageURL>
           {%- if metadata.has_option('homepage', localeCode) -%}
             {{- metadata.get('homepage', localeCode) -}}
@@ -87,6 +90,7 @@
             {{- metadata.get('homepage', 'default') -}}
           {%- endif -%}
         </em:homepageURL>
+        {%- endif -%}
       </Description>
     </em:localized>
     {%- endfor %}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git



More information about the Pkg-mozext-commits mailing list