From: Adam Heath Date: Thu, 19 Apr 2001 05:15:23 +0000 (+0000) Subject: Errors during dpkg -s(and other similiar commands) are now printed on X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=128a4d7d67b07eb8994cbb6493daef274e986fe5;p=dpkg Errors during dpkg -s(and other similiar commands) are now printed on stderr. --- diff --git a/ChangeLog b/ChangeLog index 0dc83498..7e20760e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Apr 19 00:14:39 CDT 2001 Adam Heath + + * main/enquiry.c: Errors during dpkg -s(and other similiar commands) are + now printed on stderr. + Thu Apr 19 00:03:16 CDT 2001 Adam Heath * main/archives.c: Apply patch from Fumitoshi UKAI , diff --git a/debian/changelog b/debian/changelog index 7f3be937..b6131658 100644 --- a/debian/changelog +++ b/debian/changelog @@ -60,6 +60,8 @@ dpkg (1.9.0) unstable; urgency=low segfaults people have been seeing in dpkg. Closes: #90328. * Apply patch from bug#86847, that escapes intl chars in filenames. Closes(rc): #83752, #85040, #86847, #89000. + * Errors during dpkg -s(and other similiar commands) are now printed + on stderr. Closes: #88987. -- Wichert Akkerman UNRELEASED diff --git a/main/enquiry.c b/main/enquiry.c index 54ff7f6f..4d5fd934 100644 --- a/main/enquiry.c +++ b/main/enquiry.c @@ -446,7 +446,7 @@ void enqperpackage(const char *const *argv) { !pkg->files && pkg->want == want_unknown && !informative(pkg,&pkg->installed)) { - printf(_("Package `%s' is not installed and no info is available.\n"),pkg->name); + fprintf(stderr,_("Package `%s' is not installed and no info is available.\n"),pkg->name); failures++; } else { writerecord(stdout, "", pkg, &pkg->installed); @@ -455,7 +455,7 @@ void enqperpackage(const char *const *argv) { case act_printavail: if (!informative(pkg,&pkg->available)) { - printf(_("Package `%s' is not available.\n"),pkg->name); + fprintf(stderr,_("Package `%s' is not available.\n"),pkg->name); failures++; } else { writerecord(stdout, "", pkg, &pkg->available); @@ -465,7 +465,7 @@ void enqperpackage(const char *const *argv) { case act_listfiles: switch (pkg->status) { case stat_notinstalled: - printf(_("Package `%s' is not installed.\n"),pkg->name); + fprintf(stderr,_("Package `%s' is not installed.\n"),pkg->name); failures++; break; @@ -501,8 +501,8 @@ void enqperpackage(const char *const *argv) { } if (failures) { - puts(_("Use dpkg --info (= dpkg-deb --info) to examine archive files,\n" - "and dpkg --contents (= dpkg-deb --contents) to list their contents.")); + fputs(_("Use dpkg --info (= dpkg-deb --info) to examine archive files,\n" + "and dpkg --contents (= dpkg-deb --contents) to list their contents."),stderr); if (ferror(stdout)) werr("stdout"); } }