summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2016-10-30 17:22:55 +0100
committerGuillem Jover <guillem@debian.org>2016-10-30 20:14:30 +0100
commit4c379a6e218ad96185c2abdb074bf37def13dfd4 (patch)
tree66ecf9139b4093d81ee8a749a680674930800172 /src
parent109d819c409ba6f8013787da372f0565d4d3c214 (diff)
downloaddpkg-4c379a6e218ad96185c2abdb074bf37def13dfd4.tar.gz
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
Diffstat (limited to 'src')
-rw-r--r--src/select.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/select.c b/src/select.c
index 27d530708..8d8844905 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;
}