automake-patches
[Top][All Lists]
Advanced

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

[FYI] {master} options: consistently use return statuses to report error


From: Stefano Lattarini
Subject: [FYI] {master} options: consistently use return statuses to report errors (more)
Date: Sat, 11 May 2013 01:17:58 +0200

This is a follow-up to commit 'v1.13.1d-128-g6e486c5', needed to deal
with errors that are only present in the 'master' branch (while the
reported commit was on the 'maint' branch).

* lib/Automake/Options.pm (_process_option_list): Adjust, where dealing
with the removed options 'dist-shar' and 'dist-tarZ'.

Signed-off-by: Stefano Lattarini <address@hidden>
---
 lib/Automake/Options.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/Automake/Options.pm b/lib/Automake/Options.pm
index b0693bd..a6a42a7 100644
--- a/lib/Automake/Options.pm
+++ b/lib/Automake/Options.pm
@@ -344,6 +344,7 @@ sub _process_option_list (\%@)
         {
           error ($where, "support for shar distribution archives has " .
                          "been removed.");
+          $ret = 0;
         }
       # TODO: Remove this special check in Automake 3.0.
       elsif ($_ eq 'dist-tarZ')
@@ -351,6 +352,7 @@ sub _process_option_list (\%@)
           error ($where, "support for distribution archives compressed " .
                          "with legacy program 'compress' has " .
                          "been removed.");
+          $ret = 0;
         }
       elsif (/^filename-length-max=(\d+)$/)
         {
-- 
1.8.3.rc0.19.g7e6a0cc




reply via email to

[Prev in Thread] Current Thread [Next in Thread]