diff options
author | Leah Rowe <leah@libreboot.org> | 2024-12-30 21:53:55 +0000 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2024-12-30 21:53:55 +0000 |
commit | d3a732a64db0f40a90648106436097373225d00a (patch) | |
tree | 6a7a97530eb96681dc22cd2bdf882ef015ca2794 /config/dependencies/ubuntu2004 | |
parent | 466ada423ddabacd6d7c8488b32ca1812f134033 (diff) |
lib.sh dependencies: support --reinstall argument
./mk dependencies debian --reinstall
Add --reinstall and it'll do:
apt-get install --reinstall
This can be useful when updating from a stable release
to a testing release. The variable, "reinstall" can be
configured for other distros, but it's currently only
configured for Debian-based distros.
Also, it can be anything. For example, you could add -y;
however, a 4th argument will not be accepted. For example,
you cannot do:
./mk dependencies debian --reinstall -y
If you do this, it'll only see --reinstall; similarly, if
you did this command:
./mk dependencies debian -y --reinstall
then -y would be passed, but not --reinstall. This is an
intentional design decision, in case you accidentally pasted
or subshelled something that outputted something undesirable,
to prevent possible abuse.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'config/dependencies/ubuntu2004')
-rwxr-xr-x | config/dependencies/ubuntu2004 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/dependencies/ubuntu2004 b/config/dependencies/ubuntu2004 index d22cafdd..de4e3449 100755 --- a/config/dependencies/ubuntu2004 +++ b/config/dependencies/ubuntu2004 @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-3.0-or-later -pkg_add="apt-get install" +pkg_add="apt-get install $reinstall" pkglist=" \ autoconf autogen automake autopoint autotools-dev bc binutils-arm-none-eabi \ bison build-essential cmake curl device-tree-compiler doxygen e2fsprogs efitools \ |