From 2845127968cda30be8423e1d3a24dae0e797bcc8 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Fri, 19 Jan 2024 16:06:04 +0000 Subject: Support -a for setting host architecture in apt-get source -b MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- apt-private/private-cmndline.cc | 1 + 1 file changed, 1 insertion(+) 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 &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); -- cgit v1.2.3-70-g09d2