|
|
@@ -117,7 +117,7 @@ filesavespackage(struct fileinlist *file,
|
|
|
struct pkginfo *divpkg, *thirdpkg;
|
|
|
|
|
|
debug(dbg_eachfiledetail,"filesavespackage file `%s' package %s",
|
|
|
- file->namenode->name,pkgtobesaved->name);
|
|
|
+ file->namenode->name, pkgtobesaved->set->name);
|
|
|
|
|
|
/* If the file is a contended one and it's overridden by either
|
|
|
* the package we're considering disappearing or the package
|
|
|
@@ -140,7 +140,7 @@ filesavespackage(struct fileinlist *file,
|
|
|
iter = filepackages_iter_new(file->namenode);
|
|
|
while ((thirdpkg = filepackages_iter_next(iter))) {
|
|
|
debug(dbg_eachfiledetail, "filesavespackage ... also in %s",
|
|
|
- thirdpkg->name);
|
|
|
+ thirdpkg->set->name);
|
|
|
|
|
|
/* Is this not the package being installed or the one being
|
|
|
* checked for disappearance? */
|
|
|
@@ -215,8 +215,8 @@ does_replace(struct pkginfo *newpigp, struct pkgbin *newpifp,
|
|
|
{
|
|
|
struct dependency *dep;
|
|
|
|
|
|
- debug(dbg_depcon,"does_replace new=%s old=%s (%s)",newpigp->name,
|
|
|
- oldpigp->name, versiondescribe(&oldpifp->version, vdew_always));
|
|
|
+ debug(dbg_depcon,"does_replace new=%s old=%s (%s)", newpigp->set->name,
|
|
|
+ oldpigp->set->name, versiondescribe(&oldpifp->version, vdew_always));
|
|
|
for (dep= newpifp->depends; dep; dep= dep->next) {
|
|
|
if (dep->type != dep_replaces || dep->list->ed != oldpigp->set)
|
|
|
continue;
|
|
|
@@ -476,7 +476,7 @@ tarobject(void *ctx, struct tar_entry *ti)
|
|
|
_("trying to overwrite `%.250s', which is the "
|
|
|
"diverted version of `%.250s' (package: %.100s)"),
|
|
|
nifd->namenode->name, nifd->namenode->divert->camefrom->name,
|
|
|
- divpkg->name);
|
|
|
+ divpkg->set->name);
|
|
|
} else {
|
|
|
forcibleerr(fc_overwritediverted,
|
|
|
_("trying to overwrite `%.250s', which is the "
|
|
|
@@ -571,7 +571,7 @@ tarobject(void *ctx, struct tar_entry *ti)
|
|
|
while ((otherpkg = filepackages_iter_next(iter))) {
|
|
|
if (otherpkg == tc->pkg)
|
|
|
continue;
|
|
|
- debug(dbg_eachfile, "tarobject ... found in %s", otherpkg->name);
|
|
|
+ debug(dbg_eachfile, "tarobject ... found in %s", otherpkg->set->name);
|
|
|
|
|
|
if (nifd->namenode->divert && nifd->namenode->divert->useinstead) {
|
|
|
/* Right, so we may be diverting this file. This makes the conflict
|
|
|
@@ -579,7 +579,7 @@ tarobject(void *ctx, struct tar_entry *ti)
|
|
|
* check for both being the diverting package, obviously). */
|
|
|
divpkg = nifd->namenode->divert->pkg;
|
|
|
debug(dbg_eachfile, "tarobject ... diverted, divpkg=%s",
|
|
|
- divpkg ? divpkg->name : "<none>");
|
|
|
+ divpkg ? divpkg->set->name : "<none>");
|
|
|
if (otherpkg == divpkg || tc->pkg == divpkg)
|
|
|
continue;
|
|
|
}
|
|
|
@@ -639,12 +639,13 @@ tarobject(void *ctx, struct tar_entry *ti)
|
|
|
|
|
|
if (does_replace(tc->pkg, &tc->pkg->available,
|
|
|
otherpkg, &otherpkg->installed)) {
|
|
|
- printf(_("Replacing files in old package %s ...\n"),otherpkg->name);
|
|
|
+ printf(_("Replacing files in old package %s ...\n"),
|
|
|
+ otherpkg->set->name);
|
|
|
otherpkg->clientdata->replacingfilesandsaid = 1;
|
|
|
} else if (does_replace(otherpkg, &otherpkg->installed,
|
|
|
tc->pkg, &tc->pkg->available)) {
|
|
|
printf(_("Replaced by files in installed package %s ...\n"),
|
|
|
- otherpkg->name);
|
|
|
+ otherpkg->set->name);
|
|
|
otherpkg->clientdata->replacingfilesandsaid = 2;
|
|
|
nifd->namenode->flags &= ~fnnf_new_inarchive;
|
|
|
keepexisting = true;
|
|
|
@@ -654,14 +655,14 @@ tarobject(void *ctx, struct tar_entry *ti)
|
|
|
forcibleerr(fc_overwritedir,
|
|
|
_("trying to overwrite directory '%.250s' "
|
|
|
"in package %.250s %.250s with nondirectory"),
|
|
|
- nifd->namenode->name, otherpkg->name,
|
|
|
+ nifd->namenode->name, otherpkg->set->name,
|
|
|
versiondescribe(&otherpkg->installed.version,
|
|
|
vdew_nonambig));
|
|
|
} else {
|
|
|
forcibleerr(fc_overwrite,
|
|
|
_("trying to overwrite '%.250s', "
|
|
|
"which is also in package %.250s %.250s"),
|
|
|
- nifd->namenode->name, otherpkg->name,
|
|
|
+ nifd->namenode->name, otherpkg->set->name,
|
|
|
versiondescribe(&otherpkg->installed.version,
|
|
|
vdew_nonambig));
|
|
|
}
|
|
|
@@ -1004,11 +1005,11 @@ try_deconfigure_can(bool (*force_p)(struct deppossi *), struct pkginfo *pkg,
|
|
|
if (pkg->installed.essential) {
|
|
|
if (fc_removeessential) {
|
|
|
warning(_("considering deconfiguration of essential\n"
|
|
|
- " package %s, to enable %s."), pkg->name, action);
|
|
|
+ " package %s, to enable %s."), pkg->set->name, action);
|
|
|
} else {
|
|
|
fprintf(stderr, _("dpkg: no, %s is essential, will not deconfigure\n"
|
|
|
" it in order to enable %s.\n"),
|
|
|
- pkg->name, action);
|
|
|
+ pkg->set->name, action);
|
|
|
return 0;
|
|
|
}
|
|
|
}
|
|
|
@@ -1030,7 +1031,7 @@ static int try_remove_can(struct deppossi *pdep,
|
|
|
struct pkginfo *fixbyrm,
|
|
|
const char *why) {
|
|
|
char action[512];
|
|
|
- sprintf(action, _("removal of %.250s"), fixbyrm->name);
|
|
|
+ sprintf(action, _("removal of %.250s"), fixbyrm->set->name);
|
|
|
return try_deconfigure_can(force_depends, pdep->up->up, pdep,
|
|
|
action, fixbyrm, why);
|
|
|
}
|
|
|
@@ -1055,20 +1056,20 @@ void check_breaks(struct dependency *dep, struct pkginfo *pkg,
|
|
|
ensure_package_clientdata(fixbydeconf);
|
|
|
assert(fixbydeconf->clientdata->istobe == itb_normal);
|
|
|
|
|
|
- sprintf(action, _("installation of %.250s"), pkg->name);
|
|
|
+ sprintf(action, _("installation of %.250s"), pkg->set->name);
|
|
|
fprintf(stderr, _("dpkg: considering deconfiguration of %s,"
|
|
|
" which would be broken by %s ...\n"),
|
|
|
- fixbydeconf->name, action);
|
|
|
+ fixbydeconf->set->name, action);
|
|
|
|
|
|
ok= try_deconfigure_can(force_breaks, fixbydeconf, dep->list,
|
|
|
action, NULL, why.buf);
|
|
|
if (ok == 1) {
|
|
|
fprintf(stderr, _("dpkg: yes, will deconfigure %s (broken by %s).\n"),
|
|
|
- fixbydeconf->name, pkg->name);
|
|
|
+ fixbydeconf->set->name, pkg->set->name);
|
|
|
}
|
|
|
} else {
|
|
|
fprintf(stderr, _("dpkg: regarding %s containing %s:\n%s"),
|
|
|
- pfilename, pkg->name, why.buf);
|
|
|
+ pfilename, pkg->set->name, why.buf);
|
|
|
ok= 0;
|
|
|
}
|
|
|
varbuf_destroy(&why);
|
|
|
@@ -1082,10 +1083,10 @@ void check_breaks(struct dependency *dep, struct pkginfo *pkg,
|
|
|
if (fixbydeconf && !f_autodeconf) {
|
|
|
ohshit(_("installing %.250s would break %.250s, and\n"
|
|
|
" deconfiguration is not permitted (--auto-deconfigure might help)"),
|
|
|
- pkg->name, fixbydeconf->name);
|
|
|
+ pkg->set->name, fixbydeconf->set->name);
|
|
|
} else {
|
|
|
ohshit(_("installing %.250s would break existing software"),
|
|
|
- pkg->name);
|
|
|
+ pkg->set->name);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -1115,13 +1116,13 @@ void check_conflict(struct dependency *dep, struct pkginfo *pkg,
|
|
|
assert(fixbyrm->clientdata->istobe == itb_normal || fixbyrm->clientdata->istobe == itb_deconfigure);
|
|
|
fixbyrm->clientdata->istobe= itb_remove;
|
|
|
fprintf(stderr, _("dpkg: considering removing %s in favour of %s ...\n"),
|
|
|
- fixbyrm->name, pkg->name);
|
|
|
+ fixbyrm->set->name, pkg->set->name);
|
|
|
if (!(fixbyrm->status == stat_installed ||
|
|
|
fixbyrm->status == stat_triggerspending ||
|
|
|
fixbyrm->status == stat_triggersawaited)) {
|
|
|
fprintf(stderr,
|
|
|
_("%s is not properly installed - ignoring any dependencies on it.\n"),
|
|
|
- fixbyrm->name);
|
|
|
+ fixbyrm->set->name);
|
|
|
pdep = NULL;
|
|
|
} else {
|
|
|
for (pdep = fixbyrm->set->depended.installed;
|
|
|
@@ -1151,7 +1152,7 @@ void check_conflict(struct dependency *dep, struct pkginfo *pkg,
|
|
|
varbuf_end_str(&removalwhy);
|
|
|
fprintf(stderr, _("dpkg"
|
|
|
": may have trouble removing %s, as it provides %s ...\n"),
|
|
|
- fixbyrm->name, providecheck->list->ed->name);
|
|
|
+ fixbyrm->set->name, providecheck->list->ed->name);
|
|
|
if (!try_remove_can(pdep,fixbyrm,removalwhy.buf))
|
|
|
goto break_from_both_loops_at_once;
|
|
|
}
|
|
|
@@ -1165,10 +1166,10 @@ void check_conflict(struct dependency *dep, struct pkginfo *pkg,
|
|
|
if (!pdep && (fixbyrm->eflag & eflag_reinstreq)) {
|
|
|
if (fc_removereinstreq) {
|
|
|
fprintf(stderr, _("dpkg: package %s requires reinstallation, but will"
|
|
|
- " remove anyway as you requested.\n"), fixbyrm->name);
|
|
|
+ " remove anyway as you requested.\n"), fixbyrm->set->name);
|
|
|
} else {
|
|
|
fprintf(stderr, _("dpkg: package %s requires reinstallation, "
|
|
|
- "will not remove.\n"), fixbyrm->name);
|
|
|
+ "will not remove.\n"), fixbyrm->set->name);
|
|
|
pdep= &flagdeppossi;
|
|
|
}
|
|
|
}
|
|
|
@@ -1177,7 +1178,7 @@ void check_conflict(struct dependency *dep, struct pkginfo *pkg,
|
|
|
push_conflictor(pkg, fixbyrm);
|
|
|
varbuf_destroy(&conflictwhy); varbuf_destroy(&removalwhy);
|
|
|
fprintf(stderr, _("dpkg: yes, will remove %s in favour of %s.\n"),
|
|
|
- fixbyrm->name, pkg->name);
|
|
|
+ fixbyrm->set->name, pkg->set->name);
|
|
|
return;
|
|
|
}
|
|
|
/* Put it back. */
|
|
|
@@ -1186,9 +1187,9 @@ void check_conflict(struct dependency *dep, struct pkginfo *pkg,
|
|
|
}
|
|
|
varbuf_end_str(&conflictwhy);
|
|
|
fprintf(stderr, _("dpkg: regarding %s containing %s:\n%s"),
|
|
|
- pfilename, pkg->name, conflictwhy.buf);
|
|
|
+ pfilename, pkg->set->name, conflictwhy.buf);
|
|
|
if (!force_conflicts(dep->list))
|
|
|
- ohshit(_("conflicting packages - not installing %.250s"),pkg->name);
|
|
|
+ ohshit(_("conflicting packages - not installing %.250s"), pkg->set->name);
|
|
|
warning(_("ignoring conflict, may proceed anyway!"));
|
|
|
varbuf_destroy(&conflictwhy);
|
|
|
|
|
|
@@ -1365,11 +1366,12 @@ wanttoinstall(struct pkginfo *pkg)
|
|
|
|
|
|
if (pkg->want != want_install && pkg->want != want_hold) {
|
|
|
if (f_alsoselect) {
|
|
|
- printf(_("Selecting previously unselected package %s.\n"), pkg->name);
|
|
|
+ printf(_("Selecting previously unselected package %s.\n"),
|
|
|
+ pkg->set->name);
|
|
|
pkg->want = want_install;
|
|
|
return true;
|
|
|
} else {
|
|
|
- printf(_("Skipping unselected package %s.\n"), pkg->name);
|
|
|
+ printf(_("Skipping unselected package %s.\n"), pkg->set->name);
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
@@ -1388,20 +1390,20 @@ wanttoinstall(struct pkginfo *pkg)
|
|
|
fprintf(stderr, _("Version %.250s of %.250s already installed, "
|
|
|
"skipping.\n"),
|
|
|
versiondescribe(&pkg->installed.version, vdew_nonambig),
|
|
|
- pkg->name);
|
|
|
+ pkg->set->name);
|
|
|
return false;
|
|
|
} else {
|
|
|
return true;
|
|
|
}
|
|
|
} else {
|
|
|
if (fc_downgrade) {
|
|
|
- warning(_("downgrading %.250s from %.250s to %.250s."), pkg->name,
|
|
|
+ warning(_("downgrading %.250s from %.250s to %.250s."), pkg->set->name,
|
|
|
versiondescribe(&pkg->installed.version, vdew_nonambig),
|
|
|
versiondescribe(&pkg->available.version, vdew_nonambig));
|
|
|
return true;
|
|
|
} else {
|
|
|
fprintf(stderr, _("Will not downgrade %.250s from version %.250s "
|
|
|
- "to %.250s, skipping.\n"), pkg->name,
|
|
|
+ "to %.250s, skipping.\n"), pkg->set->name,
|
|
|
versiondescribe(&pkg->installed.version, vdew_nonambig),
|
|
|
versiondescribe(&pkg->available.version, vdew_nonambig));
|
|
|
return false;
|