]> err.no Git - dpkg/commitdiff
Dpkg::Errorhandling: Add info function
authorFrank Lichtenheld <djpig@debian.org>
Fri, 29 Feb 2008 22:45:40 +0000 (23:45 +0100)
committerFrank Lichtenheld <djpig@debian.org>
Fri, 29 Feb 2008 22:51:01 +0000 (23:51 +0100)
* scripts/Dpkg/ErrorHandling.pm (info): New
function that outputs to stdout.

scripts/Dpkg/ErrorHandling.pm

index 37f72b5d581d4651a87f88b4cf2575ae818f9368..8710abd96241d5dcdb642ad5b541ec121cf8872f 100644 (file)
@@ -5,7 +5,7 @@ use Dpkg::Gettext;
 
 use base qw(Exporter);
 our @EXPORT_OK = qw(warning warnerror error failure unknown syserr internerr
-                    subprocerr usageerr syntaxerr report
+                    subprocerr usageerr syntaxerr report info
                    $warnable_error $quiet_warnings);
 
 our $warnable_error = 1;
@@ -19,6 +19,11 @@ sub report(@)
     return "$progname: $type: $msg\n";
 }
 
+sub info($;@)
+{
+    print report(_g("info"), @_) if (!$quiet_warnings);
+}
+
 sub warning($;@)
 {
     warn report(_g("warning"), @_) if (!$quiet_warnings);