[dpkg] 135/187: dpkg: Give more information on --set-selections warnings
Reiner Herrmann
reiner at reiner-h.de
Sun Nov 6 12:46:37 UTC 2016
This is an automated email from the git hooks/post-receive script.
deki-guest pushed a commit to branch master
in repository dpkg.
commit 4c379a6e218ad96185c2abdb074bf37def13dfd4
Author: Guillem Jover <guillem at debian.org>
Date: Sun Oct 30 17:22:55 2016 +0100
dpkg: Give more information on --set-selections warnings
Mention that the package cannot be found on the status nor available
database, and that to the FAQ.
Closes: #842230
---
debian/changelog | 1 +
src/select.c | 5 +++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 1758b55..0b51260 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -54,6 +54,7 @@ dpkg (1.18.11) UNRELEASED; urgency=medium
nor log the remove action.
* Remove default «.» from @INC before loading perl modules in perl code.
Fixes CVE-2016-1238.
+ * Give more information on --set-selections warnings. Closes: #842230
* Architecture support:
- Add support for AIX operating system.
* Portability:
diff --git a/src/select.c b/src/select.c
index 27d5307..8d88449 100644
--- a/src/select.c
+++ b/src/select.c
@@ -182,7 +182,7 @@ setselections(const char *const *argv)
if (!pkg_is_informative(pkg, &pkg->installed) &&
!pkg_is_informative(pkg, &pkg->available)) {
db_possibly_outdated = true;
- warning(_("package not in database at line %d: %.250s"), lno, namevb.buf);
+ warning(_("package not in status nor available database at line %d: %.250s"), lno, namevb.buf);
continue;
}
@@ -201,7 +201,8 @@ setselections(const char *const *argv)
if (db_possibly_outdated)
warning(_("found unknown packages; this might mean the available database\n"
- "is outdated, and needs to be updated through a frontend method"));
+ "is outdated, and needs to be updated through a frontend method;\n"
+ "please see the FAQ <https://wiki.debian.org/Teams/Dpkg/FAQ>"));
return 0;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dpkg.git
More information about the Reproducible-commits
mailing list