* dselect/baselist.cc (baselist::startdisplay): Set helpscreen_attr
on monochrome terminals.
+2007-12-28 Raphael Hertzog <hertzog@debian.org>
+
+ * scripts/Dpkg/ErrorHandling.pm (syntaxerr): New function to
+ replace the syntax() function in controllib.pl.
+
2007-12-28 Raphael Hertzog <hertzog@debian.org>
* scripts/Dpkg.pm: Add a warning to avoid adding unnecessary stuff
use base qw(Exporter);
our @EXPORT_OK = qw(warning warnerror error failure unknown syserr internerr
- subprocerr usageerr $warnable_error $quiet_warnings);
+ subprocerr usageerr syntaxerr $warnable_error $quiet_warnings);
our $warnable_error = 1;
our $quiet_warnings = 0;
exit(2);
}
+sub syntaxerr {
+ my ($file, $msg) = @_;
+ error(_g("syntax error in %s at line %d: %s"), $file, $., $msg);
+}
+
1;