[SCM] pkg-kde-dev-scripts packaging branch, master, updated. eb06fcd06c2249aac43f9b3d85981eee40f17bf4

Maximiliano Curia maxy at moszumanska.debian.org
Thu Aug 11 17:21:28 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/pkg-kde-dev-scripts.git;a=commitdiff;h=eb06fcd

The following commit has been merged in the master branch:
commit eb06fcd06c2249aac43f9b3d85981eee40f17bf4
Author: Maximiliano Curia <maxy at gnuservers.com.ar>
Date:   Thu Aug 11 19:21:18 2016 +0200

    group_breaks: Ignore the reverse dependencies that are in the same source package
---
 group_breaks.py | 27 +++++++++++++++++----------
 1 file changed, 17 insertions(+), 10 deletions(-)

diff --git a/group_breaks.py b/group_breaks.py
index 0ce0ff8..25e8940 100755
--- a/group_breaks.py
+++ b/group_breaks.py
@@ -192,7 +192,9 @@ def obtain_rdepends(packages, all, cache):
         rdepends = {}
         for package in source_package['binaries']:
             group_rdepends = apt_rdepends(package, cache) & all
-            rdepends[package] = group_rdepends
+            # Ignore dependencies in the same source package
+            rdepends[package] = group_rdepends.difference(
+                source_package['binaries'])
         source_package['rdepends'] = rdepends
 
 
@@ -322,6 +324,19 @@ def update_breaks(packages, binaries, version, simulate):
     return modified
 
 
+def report(packages, modified, output):
+
+    if modified:
+        logging.info('Modified packages:')
+    for name in modified:
+        s = '{}	{}
'.format(name, packages[name]['path'])
+        if output:
+            logging.info(s)
+            output.write(s)
+        else:
+            sys.stdout.write(s)
+
+
 def main():
 
     options = process_options()
@@ -340,16 +355,8 @@ def main():
 
     modified = update_breaks(packages, binaries, upstream_version,
                              options.no_act)
-    if modified:
-        logging.info('Modified packages:')
-    for name in modified:
-        s = '{}	{}
'.format(name, packages[name]['path'])
-        if options.output:
-            logging.info(s)
-            options.output.write(s)
-        else:
-            sys.stdout.write(s)
 
+    report(packages, modified, options.output)
 
 if __name__ == "__main__":
     main()

-- 
pkg-kde-dev-scripts packaging



More information about the pkg-kde-commits mailing list