From 9244f712396c10b674740cc79fdab61c47173d04 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Thu, 9 May 2019 22:23:17 +0200 Subject: Introduce apt satisfy and apt-get satisfy Allow to satisfy dependency strings supplied on the command line, optionally prefixed with "Conflicts:" to satisfy them like Conflicts. Build profiles and architecture restriction lists, as used in build dependencies, are supported as well. Compared to build-dep, build-essential is not installed automatically, and installing of recommended packages follows the global default, which defaults to yes. Closes: #275379 See merge request apt-team/apt!63 --- cmdline/apt-get.cc | 1 + cmdline/apt.cc | 1 + 2 files changed, 2 insertions(+) (limited to 'cmdline') diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index fe6e22d81..7ef07fbf0 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -416,6 +416,7 @@ static std::vector GetCommands() /*{{{*/ {"full-upgrade", &DoDistUpgrade, nullptr}, {"dselect-upgrade", &DoDSelectUpgrade, _("Follow dselect selections")}, {"build-dep", &DoBuildDep, _("Configure build-dependencies for source packages")}, + {"satisfy", &DoBuildDep, _("Satisfy dependency strings")}, {"clean", &DoClean, _("Erase downloaded archive files")}, {"autoclean", &DoAutoClean, _("Erase old downloaded archive files")}, {"auto-clean", &DoAutoClean, nullptr}, diff --git a/cmdline/apt.cc b/cmdline/apt.cc index d388e4af4..cc73181c0 100644 --- a/cmdline/apt.cc +++ b/cmdline/apt.cc @@ -78,6 +78,7 @@ static std::vector GetCommands() /*{{{*/ // misc {"edit-sources", &EditSources, _("edit the source information file")}, {"moo", &DoMoo, nullptr}, + {"satisfy", &DoBuildDep, _("satisfy dependency strings")}, // for compat with muscle memory {"dist-upgrade", &DoDistUpgrade, nullptr}, -- cgit v1.2.3