aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2016-01-27 13:52:32 +0100
committerTim Harder <radhermit@gentoo.org>2016-03-05 18:31:09 -0500
commit5257c69de9827577e85601b1127edae96012711a (patch)
tree7d24d2b4d018b317d5bf34fcfee638805902a834 /plugin/newmetadata.vim
parentnewmetadata: Add more projects for some extra languages (diff)
downloadgentoo-syntax-5257c69de9827577e85601b1127edae96012711a.tar.gz
gentoo-syntax-5257c69de9827577e85601b1127edae96012711a.tar.bz2
gentoo-syntax-5257c69de9827577e85601b1127edae96012711a.zip
newmetadata: Always put obligatory <maintainer/> parts
Always put <maintainer type="person"/> element with <email/> subelement since some maintainer is always desired, and <email/> is obligatory. Worst case, we'd be outputting placeholder to fill.
Diffstat (limited to 'plugin/newmetadata.vim')
-rw-r--r--plugin/newmetadata.vim14
1 files changed, 5 insertions, 9 deletions
diff --git a/plugin/newmetadata.vim b/plugin/newmetadata.vim
index f9efeb4..b013d95 100644
--- a/plugin/newmetadata.vim
+++ b/plugin/newmetadata.vim
@@ -79,16 +79,12 @@ fun! <SID>MakeNewMetadata()
put ='<email>' . l:project . '@gentoo.org</email>'
put ='</maintainer>'
endif
- if l:email != "" || l:name != ""
- put ='<maintainer type=\"person\">'
- if l:email != ""
- put ='<email>' . l:email . '</email>'
- endif
- if l:name != ""
- put ='<name>' . l:name . '</name>'
- endif
- put ='</maintainer>'
+ put ='<maintainer type=\"person\">'
+ put ='<email>' . l:email . '</email>'
+ if l:name != ""
+ put ='<name>' . l:name . '</name>'
endif
+ put ='</maintainer>'
put ='<longdescription lang=\"en\">'
put ='</longdescription>'
put ='</pkgmetadata>'