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

[lintian] 01/01: L::Unpacker: Set $0 based on what is being processed



This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository lintian.

commit 8efed1879104bd200f6f3f6a7edae32275e89b3e
Author: Niels Thykier <niels@thykier.net>
Date:   Sun Apr 10 09:31:50 2016 +0000

    L::Unpacker: Set $0 based on what is being processed
    
    As we are renaming, we might as well add extra information anyway.
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 debian/changelog        | 2 ++
 lib/Lintian/Unpacker.pm | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 661019b..59dbb7c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -56,6 +56,8 @@ lintian (2.5.44) UNRELEASED; urgency=medium
   * lib/Lintian/Relation.pm:
     + [JW,NT] Fix broken implication with "P (<< V)" relations.
       (Closes: #819560)
+  * lib/Lintian/Unpacker.pm:
+    + [NT] Name the subprocess after what is processing.
 
  -- Niels Thykier <niels@thykier.net>  Sun, 03 Apr 2016 18:48:59 +0000
 
diff --git a/lib/Lintian/Unpacker.pm b/lib/Lintian/Unpacker.pm
index 7c1857e..e910814 100644
--- a/lib/Lintian/Unpacker.pm
+++ b/lib/Lintian/Unpacker.pm
@@ -442,10 +442,10 @@ sub process_tasks {
                         # For platforms that do not support, the child
                         # process will just keep its name as
                         # "lintian".
-
+                        my $name = "${coll} (processing ${procid})";
 #<<<
                         # no Perltidy (breaks the no-critic)
-                        $0 = $coll;  ## no critic (Variables::RequireLocalizedPunctuationVars)
+                        $0 = $name;  ## no critic (Variables::RequireLocalizedPunctuationVars)
 #>>>
 
                         eval {$cs->collect($pkg_name, $pkg_type, $base);};

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: