From 92d07e8691d464a3676ac6289c578d6217776633 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 16 Dec 2010 12:53:30 -0400 Subject: [PATCH 1/1] Do not return a nonzero exit status when all repositories were skipped. Closes: #607287 --- debian/changelog | 2 ++ mr | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 19edc74..1e1f549 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,8 @@ mr (0.51) UNRELEASED; urgency=low * Fix display when absolute directories are configured in mrconfig. * Add push to manpage synopsis. Closes: #603029 + * Do not return a nonzero exit status when all repositories were skipped. + Closes: #607287 -- Joey Hess Thu, 28 Oct 2010 18:01:27 -0400 diff --git a/mr b/mr index 642aa6f..5a877fe 100755 --- a/mr +++ b/mr @@ -427,6 +427,10 @@ mr can be extended to support things such as unison and git-svn. Some files providing such extensions are available in /usr/share/mr/. See the documentation in the files for details about using them. +=head1 EXIT STATUS + +mr returns nonzero if a command failed in any of the repositories. + =head1 AUTHOR Copyright 2007-2010 Joey Hess @@ -1548,9 +1552,6 @@ sub exitstats { if (@failed) { exit 1; } - elsif (! @ok && @skipped) { - exit 1; - } else { exit 0; } -- 2.39.5