From: Joey Hess Date: Fri, 19 Oct 2007 20:14:58 +0000 (-0400) Subject: * Fix output of "mr config DEFAULT lib". X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/929e9fbde36477b2a66b1b0db5fedbaac397c012?ds=inline * Fix output of "mr config DEFAULT lib". --- diff --git a/debian/changelog b/debian/changelog index b4ebe50..b94dc8b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,8 +4,9 @@ mr (0.5) UNRELEASED; urgency=low thing can be accomplished in a mrconfig by skipping a repo unless it exists, and printing a reminder on update. See the mrconfig file for an example. + * Fix output of "mr config DEFAULT lib". - -- Joey Hess Fri, 19 Oct 2007 15:53:15 -0400 + -- Joey Hess Fri, 19 Oct 2007 16:14:21 -0400 mr (0.4) unstable; urgency=low diff --git a/mr b/mr index a5a9131..4630f06 100755 --- a/mr +++ b/mr @@ -22,7 +22,7 @@ B [options] log B [options] register [repository] -B [options] config section [parameter=[value] ...] +B [options] config section ["parameter=[value]" ...] B [options] action [params ...] @@ -350,6 +350,7 @@ elsif ($action eq 'config') { exists $config{$topdir}{$section}{$_}) { print $config{$topdir}{$section}{$_}."\n"; $found=1; + last if $section eq 'DEFAULT'; } } if (! $found) {