Skip to content
Snippets Groups Projects
Commit 19b6b33e authored by Guillem Jover's avatar Guillem Jover
Browse files

dpkg: During unpack print a removal message due to Conflicts

When deciding whether to de-configure a package due to Breaks we print
a message stating so, as well as when we are actually de-configuring
them. When deciding whether to remove a package due to Conflicts we also
print a message, but were not printing anything when removing these
package which seems rather confusing and makes the installation non
obvious.

Closes: #985401
parent 7a568f06
No related branches found
No related tags found
1 merge request!4Update crimson to version from bookworm
......@@ -1624,6 +1624,11 @@ void process_archive(const char *filename) {
/* We need to have the most up-to-date info about which files are
* what ... */
ensure_allinstfiles_available();
printf(_("Removing %s (%s), to allow configuration of %s (%s) ...\n"),
pkg_name(conflictor, pnaw_nonambig),
versiondescribe(&conflictor->installed.version, vdew_nonambig),
pkg_name(pkg, pnaw_nonambig),
versiondescribe(&pkg->installed.version, vdew_nonambig));
removal_bulk(conflictor);
}
......
......@@ -11,5 +11,14 @@ test-case:
$(call pkg_is_not_installed,pkg-b)
-$(DPKG_PURGE) pkg-a pkg-b
# Test installation generating removal of conflicts.
$(DPKG_INSTALL) pkg-b.deb
# Set up the desired transaction.
echo pkg-b deinstall | $(BEROOT) $(DPKG) --set-selections
$(DPKG_INSTALL) pkg-a.deb
$(call pkg_is_installed,pkg-a)
$(call pkg_is_not_installed,pkg-b)
-$(DPKG_PURGE) pkg-a pkg-b
test-clean:
-$(DPKG_PURGE) pkg-a pkg-b
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment