The following commit has been merged in the master branch:
commit 8b2c0d28d5d2714c3d3fc7b767531474644bc39e
Author: Ole Streicher <[email protected]>
Date:   Wed Apr 6 12:05:01 2016 +0200

    Task $blend-all: put packages that are not installed to "Suggests:"
    This way, the -all task includes all packages for a specific blend,
    which may be useful for a later re-selection.

diff --git a/devtools/blend-gen-control b/devtools/blend-gen-control
index 71f52b1..bf8ef0a 100755
--- a/devtools/blend-gen-control
+++ b/devtools/blend-gen-control
@@ -181,18 +181,22 @@ sub gen_control {
     print "Package: $blendshortname-all\n";
     print "Section: metapackages\n" ;
     print "Architecture: all\n";
-    my @list;
+    my @recommends;
+    my @suggests;
     for $task (sort keys %taskinfo) {
         next if (exists $taskinfo{$task}{'Metapackage'} &&
                         $taskinfo{$task}{'Metapackage'} eq 'false');
-        next if (exists $taskinfo{$task}{'Install'} &&
-                        $taskinfo{$task}{'Install'} eq 'false');
         next if ( $suppressempty && $taskinfo{$task}{'haspackages'} == 0 );
-        push (@list, $task)
+        if (exists $taskinfo{$task}{'Install'} &&
+           $taskinfo{$task}{'Install'} eq 'false') {
+           push (@suggests, $task)
+       } else {
+           push (@recommends, $task)
+       }
     }
-    print "Recommends: ";
-    print join(",\n ",@list);
-    print "\nDescription: Default selection of tasks for $blendtitle\n";
+    print("Recommends: ", join(",\n ", @recommends),"\n") if @recommends;
+    print("Suggests: ", join(",\n ", @suggests),"\n") if @suggests;
+    print "Description: Default selection of tasks for $blendtitle\n";
     print " This package is part of the $blendtitle Pure Blend and installs 
all\n";
     print " tasks for a default installation of this blend.\n\n";
 

-- 
Git repository for blends code

_______________________________________________
Blends-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/blends-commit

Reply via email to