diff options
author | Julian Andres Klode <jak@debian.org> | 2010-06-28 17:34:54 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2010-06-28 17:34:54 +0200 |
commit | 4213f040ac8464d8826b64746c49c21c53a1ab12 (patch) | |
tree | 79b8b5b35efe2f88592c080108f57cb7073dd116 /apt-pkg/versionmatch.cc | |
parent | 01934fb1fe79cddcc3cb4c79c99c3c30390fdef6 (diff) |
Use _error->Warning() instead of writing to std::cerr.
Diffstat (limited to 'apt-pkg/versionmatch.cc')
-rw-r--r-- | apt-pkg/versionmatch.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/versionmatch.cc b/apt-pkg/versionmatch.cc index 65908f733..a269338d6 100644 --- a/apt-pkg/versionmatch.cc +++ b/apt-pkg/versionmatch.cc @@ -183,7 +183,7 @@ bool pkgVersionMatch::ExpressionMatches(const char *pattern, const char *string) char *regex = strdup(pattern + 1); regex[length - 2] = '\0'; if (regcomp(&preg, regex, REG_EXTENDED | REG_ICASE) != 0) { - std::cerr << "E: Invalid regular expression: " << regex << "\n"; + _error->Warning("Invalid regular expression: %s", regex); } else if (regexec(&preg, string, 0, NULL, 0) == 0) { res = true; } |