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

Bug#709057: blends-dev: Separate package dependencies with a newline

Package: blends-dev
Severity: normal
Tags: patch

Package lists in debian/control are separated by just a space, which
makes diffs harder to read. Putting packages one per line should make
diffs easier to parse. The attached patch does that (at least, works for
me (tm)).


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.8-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages blends-dev depends on:
ii  apt          
ii  build-essential        11.6
ii  debconf [debconf-2.0]  1.5.50
ii  debhelper              9.20130516
ii  make                   3.81-8.2

blends-dev recommends no packages.

Versions of packages blends-dev suggests:
pn  blends-doc  <none>

-- no debconf information
>From f6ab1b2b1d320428a175460a462a605a3a115462 Mon Sep 17 00:00:00 2001
From: Felipe Sateler <fsateler@debian.org>
Date: Mon, 20 May 2013 10:12:21 -0400
Subject: [PATCH] blends-gen-control: separate packages with a new line in
 dependency lists

 devtools/blend-gen-control |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/devtools/blend-gen-control b/devtools/blend-gen-control
index 277cac8..e20e30d 100755
--- a/devtools/blend-gen-control
+++ b/devtools/blend-gen-control
@@ -217,15 +217,15 @@ sub gen_control {
                 push(@suggests, @{$taskinfo{$task}{Suggests}})
                     if defined $taskinfo{$task}{Suggests};
                 print("Recommends: ",
-                      join(", ", sort_uniq(\%seenlist, @recommends)),"\n")
+                      join(",\n ", sort_uniq(\%seenlist, @recommends)),"\n")
                         if defined $taskinfo{$task}{Depends};
                 print("Suggests: ",
-                      join(", ", sort_uniq(\%seenlist, @suggests)),"\n")
+                      join(",\n ", sort_uniq(\%seenlist, @suggests)),"\n")
                     if @suggests;
         else {
                 for $header (qw(Depends Recommends Suggests)) {
-                    print "$header: ", join(", ", sort_uniq(\%seenlist, @{$taskinfo{$task}{$header}})),"\n"
+                    print "$header: ", join(",\n ", sort_uniq(\%seenlist, @{$taskinfo{$task}{$header}})),"\n"
                         if defined $taskinfo{$task}{$header};

Reply to: