[libreoffice-dictionaries] 02/03: d/helper.py: allow more_provides also for hunspell packages
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch master
in repository libreoffice-dictionaries.
commit 829cc4a2a6989db6513fe1c695ec4714597c8df3
Author: Mattia Rizzolo <mattia@debian.org>
Date: Sat May 21 18:31:59 2016 +0000
d/helper.py: allow more_provides also for hunspell packages
Gbp-Dch: Ignore
---
debian/helper.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/debian/helper.py b/debian/helper.py
index 80e29b2..55afe3d 100755
--- a/debian/helper.py
+++ b/debian/helper.py
@@ -185,7 +185,7 @@ Package: hunspell-$language_639
Architecture: all
Depends: dictionaries-common, $${misc:Depends}, $${hunspell:Depends}
Suggests: hunspell, libreoffice-writer
-Provides: hunspell-dictionary, hunspell-dictionary-$language_639
+Provides: hunspell-dictionary, hunspell-dictionary-$language_639${more_provides}
${breaks}${conflicts}""")
hunspell_desc_tpl = Template(
"""Description: $language_name dictionary for hunspell
@@ -326,7 +326,11 @@ def generate_control():
co = ''
if pkg_name in conflicts:
co = 'Conflicts: {}\n'.format(conflicts[pkg_name])
+ pro = ''
+ if pkg_name in provides:
+ pro = ', %s' % provides[pkg_name]
control += hunspell_tpl.substitute(language_639=item['code'],
+ more_provides=pro,
breaks=br, conflicts=co)
if 'special' in item:
control += item['special']
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-openoffice/libreoffice-dictionaries.git
Reply to: