[SCM] Debian Qt/KDE packaging tools branch, master, updated. debian/0.15.20-3-g374ed6b

Dmitry Shachnev mitya57 at moszumanska.debian.org
Wed Jan 6 18:03:22 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/pkg-kde-tools.git;a=commitdiff;h=374ed6b

The following commit has been merged in the master branch:
commit 374ed6b5e0c3ded82bd356bb025a0b292594060d
Author: Dmitry Shachnev <mitya57 at gmail.com>
Date:   Wed Jan 6 21:02:56 2016 +0300

    pkgkde-mark-qt5-private-symbols: Do nothing when alternative is not specified.
---
 debian/changelog                | 2 ++
 pkgkde-mark-qt5-private-symbols | 8 +++++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 2199ee6..4b9b8d7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,8 @@ pkg-kde-tools (0.15.21) UNRELEASED; urgency=medium
   * pkgkde-mark-qt5-private-symbols:
     - Make --write-results option the default, add option --print-diff for the
       old behavior.
+    - Do not try to mark private symbols if alternative dependency is not
+      specified in the symbols file.
 
  -- Debian Qt/KDE Maintainers <debian-qt-kde at lists.debian.org>  Wed, 06 Jan 2016 20:52:49 +0300
 
diff --git a/pkgkde-mark-qt5-private-symbols b/pkgkde-mark-qt5-private-symbols
index a547453..56eedb6 100755
--- a/pkgkde-mark-qt5-private-symbols
+++ b/pkgkde-mark-qt5-private-symbols
@@ -36,6 +36,7 @@ from sys import stdout, stderr
 def process_symbols_file(symbols_file_path, write_results=False):
     old_lines = []
     new_lines = []
+    has_alternative = False
     with open(symbols_file_path) as symbols_file:
         for line in symbols_file:
             old_lines.append(line)
@@ -44,8 +45,13 @@ def process_symbols_file(symbols_file_path, write_results=False):
                 line = line[:-2]
             if '@Qt_5_PRIVATE_API' in line:
                 line += ' 1'
+            if line.startswith('| '):
+                has_alternative = True
             new_lines.append(line + '
')
-    if write_results:
+    if not has_alternative:
+        print('Skipping file %s, no alternative dependency specified.' %
+              symbols_file_path)
+    elif write_results:
         with open(symbols_file_path, 'w') as symbols_file:
             for line in new_lines:
                 symbols_file.write(line)

-- 
Debian Qt/KDE packaging tools



More information about the pkg-kde-commits mailing list