+2007-03-21 Jeffrey W. Baker <jwbaker@acm.org>
+ Guillem Jover <guillem@debian.org>
+
+ * src/archives.c (wanttoinstall): Use vdew_nonambig instead of
+ vdew_never on versiondescribe.
+ * src/configure.c (deferred_configure): Likewise.
+ * src/query.c (list1package): Likewise.
+ * dselect/pkgsublist.cc (packagelist::add): Likewise.
+ * dselect/pkgtop.cc (packagelist::redraw1itemsel): Likewise.
+
2007-03-21 Guillem Jover <guillem@debian.org>
* dselect/main.cc: Remove duplicated included files <sys/types.h> and
* Support building binary packages with the member data.tar.lzma compressed
with lzma.
* Require gettext 0.16.1.
+ * Show the epoch (if present) when displaying package versions.
+ Closes: #107449, #179913, #345594, #393924, #405668
+ Based on a patch by Jeffrey W. Baker.
[ Updated dpkg translations ]
* Romanian (Eddy Petrișor).
case dvr_exact: info(" (= "); break;
default: internerr("unknown verrel");
}
- info(versiondescribe(&possi->version,vdew_never));
+ info(versiondescribe(&possi->version, vdew_nonambig));
info(")");
}
}
if (versioninstalled_width)
mvwprintw(listpad,index,versioninstalled_column, "%-*.*s ",
versioninstalled_width, versioninstalled_width,
- versiondescribe(&pkg->installed.version,vdew_never));
+ versiondescribe(&pkg->installed.version, vdew_nonambig));
if (versionavailable_width) {
if (informativeversion(&pkg->available.version) &&
versioncompare(&pkg->available.version,&pkg->installed.version) > 0)
wattrset(listpad, selected ? selstatesel_attr : selstate_attr);
mvwprintw(listpad,index,versionavailable_column, "%-*.*s",
versionavailable_width, versionavailable_width,
- versiondescribe(&pkg->available.version,vdew_never));
+ versiondescribe(&pkg->available.version, vdew_nonambig));
wattrset(listpad, selected ? listsel_attr : list_attr);
waddch(listpad,' ');
}
* also return -1 to mean it doesn't know because it would depend on
* the version number.
*/
- enum versiondisplayepochwhen needepochs;
int r;
if (pkg->want != want_install && pkg->want != want_hold) {
pkg->status == stat_installed && !(pkg->eflag &= eflagf_reinstreq)) {
if (saywhy) fprintf(stderr, _("Version %.250s of %.250s already installed, "
"skipping.\n"),
- versiondescribe(&pkg->installed.version,vdew_never),
+ versiondescribe(&pkg->installed.version, vdew_nonambig),
pkg->name);
return 0;
} else {
return 1;
}
} else {
- needepochs= epochsdiffer(&pkg->available.version,&pkg->installed.version) ?
- vdew_always : vdew_never;
if (fc_downgrade) {
if (saywhy) fprintf(stderr, _("%s - warning: downgrading %.250s "
"from %.250s to %.250s.\n"), DPKG, pkg->name,
- versiondescribe(&pkg->installed.version,needepochs),
- versiondescribe(&pkg->available.version,needepochs));
+ versiondescribe(&pkg->installed.version, vdew_nonambig),
+ versiondescribe(&pkg->available.version, vdew_nonambig));
return 1;
} else {
if (saywhy) fprintf(stderr, _("Will not downgrade %.250s from version %.250s "
"to %.250s, skipping.\n"), pkg->name,
- versiondescribe(&pkg->installed.version,needepochs),
- versiondescribe(&pkg->available.version,needepochs));
+ versiondescribe(&pkg->installed.version, vdew_nonambig),
+ versiondescribe(&pkg->available.version, vdew_nonambig));
return 0;
}
}
" reinstall it before attempting configuration."));
printf(_("Setting up %s (%s) ...\n"),pkg->name,
- versiondescribe(&pkg->installed.version,vdew_never));
+ versiondescribe(&pkg->installed.version, vdew_nonambig));
if (f_noact) {
pkg->status= stat_installed;
if (!pdesc) pdesc= _("(no description available)");
plen= strlen(pkgl[i]->name);
- vlen= strlen(versiondescribe(&pkgl[i]->installed.version,vdew_never));
+ vlen = strlen(versiondescribe(&pkgl[i]->installed.version, vdew_nonambig));
dlen= strcspn(pdesc, "\n");
if (plen > nw) nw = plen;
if (vlen > vw) vw = vlen;
"nUFiHc"[pkg->status],
" R?#"[pkg->eflag],
pkg->name,
- versiondescribe(&pkg->installed.version,vdew_never),
+ versiondescribe(&pkg->installed.version, vdew_nonambig),
l, pdesc);
}