summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2024-01-19 16:06:04 +0000
committerDavid Kalnischkies <david@kalnischkies.de>2024-01-19 17:28:31 +0000
commit2845127968cda30be8423e1d3a24dae0e797bcc8 (patch)
treec614a5ebcaf1a066c5842a59aeb50593bbdd91ef
parent87ce5f60e70c32dcefc46692212c7405d79703c3 (diff)
Support -a for setting host architecture in apt-get source -b
It is documented and the code supports it, but the command line parsing actually refuses -a/--host-architecture=arch … probably a sign how much "apt-get source -b" is (not) used in practice. Setting via -o APT::Get::Host-Architecture=arch (which -a is just a shorthand for) works as it did before and can be used if backward compatibility is important.
-rw-r--r--apt-private/private-cmndline.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/apt-private/private-cmndline.cc b/apt-private/private-cmndline.cc
index 9e3938407..2805685b0 100644
--- a/apt-private/private-cmndline.cc
+++ b/apt-private/private-cmndline.cc
@@ -214,6 +214,7 @@ static bool addArgumentsAPTGet(std::vector<CommandLine::Args> &Args, char const
}
else if (CmdMatches("source"))
{
+ addArg('a', "host-architecture", "APT::Get::Host-Architecture", CommandLine::HasArg);
addArg('b', "compile", "APT::Get::Compile", 0);
addArg('b', "build", "APT::Get::Compile", 0);
addArg('P', "build-profiles", "APT::Build-Profiles", CommandLine::HasArg);