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

Ole Streicher ole at aip.de
Tue Nov 15 09:03:46 UTC 2016


The following commit has been merged in the master branch:
commit d441eadb94015661074deed0c7f0122722185b50
Author: Ole Streicher <ole at aip.de>
Date:   Tue Nov 15 10:03:36 2016 +0100

    Remove warnings about undefined $_

diff --git a/devtools/blend-gen-control b/devtools/blend-gen-control
index 4cb8bdf..42e6090 100755
--- a/devtools/blend-gen-control
+++ b/devtools/blend-gen-control
@@ -565,6 +565,7 @@ sub load_task {
 
         my $header;
         for $header (qw(Depends Recommends Suggests)) {
+	    last if !defined $_;
             if (m/^$header:\s+(.+)$/ && $1 !~ /^\s*$/) {
 		my $pkgs = $1;
 		$pkgs =~ s/\s*\\//;
@@ -595,6 +596,8 @@ sub load_task {
             }
         }
 
+        next unless defined $_;
+
         if (/^Avoid:\s+(.+)$/) {
             my @pkgs = split(/\s*,\s*/, $1);
             my $packages;

-- 
Git repository for blends code



More information about the Blends-commit mailing list