From: Frank Lichtenheld Date: Mon, 10 Dec 2007 23:47:00 +0000 (+0100) Subject: Dpkg::Changelog: Make warnings from __sanity_check_range more informative X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78adb13396e4eb966269b338b0e382a424b54f52;p=dpkg Dpkg::Changelog: Make warnings from __sanity_check_range more informative Explicetly tell which information will be ignored. --- diff --git a/scripts/Dpkg/Changelog.pm b/scripts/Dpkg/Changelog.pm index 1f1e0f63..4cf0ca62 100644 --- a/scripts/Dpkg/Changelog.pm +++ b/scripts/Dpkg/Changelog.pm @@ -223,19 +223,19 @@ sub __sanity_check_range { $$from = $$since = $$to = $$until = ''; } if ($$from && $$since) { - warning(_g( "you can only specify one of 'from' and 'since'" )); + warning(_g( "you can only specify one of 'from' and 'since', using 'since'" )); $$from = ''; } if ($$to && $$until) { - warning(_g( "you can only specify one of 'to' and 'until'" )); + warning(_g( "you can only specify one of 'to' and 'until', using 'until'" )); $$to = ''; } if ($$since && ($data->[0]{Version} eq $$since)) { - warning(_g( "'since' option specifies most recent version" )); + warning(_g( "'since' option specifies most recent version, ignoring" )); $$since = ''; } if ($$until && ($data->[$#{$data}]{Version} eq $$until)) { - warning(_g( "'until' option specifies oldest version" )); + warning(_g( "'until' option specifies oldest version, ignoring" )); $$until = ''; } $$start = 0 if $$start < 0;