[Blends-commit] [SCM] blends-dev branch, master, updated. 706fd96aba31b7334c231e7fb9ef817adb8d4cc0

Mike Gabriel mike.gabriel at das-netzwerkteam.de
Sat Aug 12 02:00:14 UTC 2017


The following commit has been merged in the master branch:
commit 706fd96aba31b7334c231e7fb9ef817adb8d4cc0
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Fri Aug 11 21:58:44 2017 -0400

    devtools/blend-gen-control: With -D (no depends) set, assure that packages under Depends: _and_ Recommends: in task files end up under Recommends: in debian/control.

diff --git a/devtools/blend-gen-control b/devtools/blend-gen-control
index 45a2cad..d0e8d33 100755
--- a/devtools/blend-gen-control
+++ b/devtools/blend-gen-control
@@ -256,12 +256,14 @@ sub gen_control {
 #                   if defined $taskinfo{$task}{Recommends};
                 push(@suggests, @{$taskinfo{$task}{Suggests}})
                     if defined $taskinfo{$task}{Suggests};
+                my @recommends_sorted = sort_uniq(\%seenlist, @recommends);
+                my @suggests_sorted = sort_uniq(\%seenlist, @suggests);
                 print("Recommends: ",
-                      join(",\n ", sort_uniq(\%seenlist, @recommends)),"\n")
-                        if defined $taskinfo{$task}{Depends};
+                      join(",\n ", @recommends_sorted),"\n")
+                        if @recommends_sorted;
                 print("Suggests: ",
-                      join(",\n ", sort_uniq(\%seenlist, @suggests)),"\n")
-                    if @suggests;
+                      join(",\n ", @suggests_sorted),"\n")
+                    if @suggests_sorted;
         }
         else {
                 for $header (qw(Depends Recommends Suggests)) {

-- 
Git repository for blends code



More information about the Blends-commit mailing list