Просмотр исходного кода

Improve depisok error message when the package involved is installed

Ian Jackson лет назад: 18
Родитель
Сommit
1cc4f9f334
2 измененных файлов с 8 добавлено и 2 удалено
  1. 5 0
      ChangeLog
  2. 3 2
      src/depcon.c

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2008-03-28  Ian Jackson  <ian@davenant.greenend.org.uk>
+
+	* src/depcon.c (depisok): Improve whynot message by stating when a
+	package is installed with 'is present'.
+
 2008-03-28  Ian Jackson  <ian@davenant.greenend.org.uk>
 
 	* src/help.c (cu_post_script_tasks): New function.

+ 3 - 2
src/depcon.c

@@ -422,7 +422,7 @@ int depisok(struct dependency *dep, struct varbuf *whynot,
           if (dep->type == dep_breaks) break; /* no problem */
         case stat_installed:
           if (!versionsatisfied(&possi->ed->installed, possi)) break;
-          sprintf(linebuf, _("  %.250s (version %.250s) is %s.\n"),
+          sprintf(linebuf, _("  %.250s (version %.250s) is present and %s.\n"),
                   possi->ed->name,
                   versiondescribe(&possi->ed->installed.version,vdew_nonambig),
                   gettext(statusstrings[possi->ed->status]));
@@ -484,7 +484,8 @@ int depisok(struct dependency *dep, struct varbuf *whynot,
           case stat_halfconfigured:
             if (dep->type == dep_breaks) break; /* no problem */
           case stat_installed:
-            sprintf(linebuf, _("  %.250s provides %.250s and is %s.\n"),
+            sprintf(linebuf,
+                    _("  %.250s provides %.250s and is present and %s.\n"),
                     provider->up->up->name, possi->ed->name,
                     gettext(statusstrings[provider->up->up->status]));
             varbufaddstr(whynot, linebuf);