[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[libreoffice-dictionaries] 01/01: d/helper.py: Add Breaks/Replaces on the now transitional package openoffice.org-hyphenation-lt



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

mattia pushed a commit to branch master
in repository libreoffice-dictionaries.

commit 6627c3cc47c71a5aa8878f98f704f14e000d28ae
Author: Mattia Rizzolo <mattia@debian.org>
Date:   Sun May 15 14:53:14 2016 +0000

    d/helper.py: Add Breaks/Replaces on the now transitional package openoffice.org-hyphenation-lt
---
 debian/control   | 2 ++
 debian/helper.py | 8 +++++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index 0f5f44a..ea54baa 100644
--- a/debian/control
+++ b/debian/control
@@ -789,6 +789,8 @@ Architecture: all
 Depends: dictionaries-common, ${misc:Depends}
 Suggests: libreoffice-writer
 Provides: hyphen-hyphenation-patterns, hyphen-hyphenation-patterns-lt
+Breaks: openoffice.org-hyphenation-lt (<< 1.2.1-6)
+Replaces: openoffice.org-hyphenation-lt (<< 1.2.1-6)
 Description: Lithuanian hyphenation patterns
  This package contains the Lithuanian hyphenation patterns.
  .
diff --git a/debian/helper.py b/debian/helper.py
index e37dc74..b7b896b 100755
--- a/debian/helper.py
+++ b/debian/helper.py
@@ -68,6 +68,7 @@ breaks_replaces = {
  "hunspell-sw": ("myspell-sw", '<<', "1:5.0.1+dfsg-1"),
  "hunspell-th": ("myspell-th", '<<', "1:5.0.1+dfsg-1"),
  "hunspell-sl": ("myspell-sl", '<=', "1.0-5"),
+ "hyphen-lt": ('openoffice.org-hyphenation-lt', '<<', '1.2.1-6'),
 }
 
 conflicts = {
@@ -173,7 +174,7 @@ Architecture: all
 Depends: dictionaries-common, $${misc:Depends}
 Suggests: libreoffice-writer
 Provides: hyphen-hyphenation-patterns, hyphen-hyphenation-patterns-${language_639}${more_provides}
-${conflicts}Description: $language_name hyphenation patterns
+${breaks}${conflicts}Description: $language_name hyphenation patterns
  This package contains the $language_name hyphenation patterns.
  .
  You can use these patterns with programs which take advantage of libhyphen,
@@ -300,6 +301,10 @@ def generate_control():
             else:
                 co = ''
                 pro = ''
+                br = ''
+                if pkg_name in breaks_replaces:
+                    br = 'Breaks: {0} ({1} {2})\nReplaces: {0} ({1} {2})\n'
+                    br = br.format(*breaks_replaces[pkg_name])
                 if pkg_name in conflicts:
                     co = 'Conflicts: {}\n'.format(conflicts[pkg_name])
                 if pkg_name in provides:
@@ -307,6 +312,7 @@ def generate_control():
                 control += hyphen_tpl.substitute(language_639=item['code'],
                                                  language_name=item['name'],
                                                  more_provides=pro,
+                                                 breaks=br,
                                                  conflicts=co)
         if 'hunspell' in item:
             pkg_name = 'hunspell-' + item['code']

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-openoffice/libreoffice-dictionaries.git


Reply to: