Skip to content
Snippets Groups Projects
Commit 01621fb1 authored by Ryan Gonzalez's avatar Ryan Gonzalez
Browse files

apt-install: Pass --allow-remove-essential


This is needed in many cases when replacing packages from the target
repos, e.g. replacing busybox-gzip with GNU gzip. I considered making
this configurable, but it would have to be enabled for a large number of
SDKs regardless, so the risk isn't significantly greater by having it
always on.

Signed-off-by: default avatarRyan Gonzalez <ryan.gonzalez@collabora.com>
parent fe71a0f9
No related branches found
No related tags found
2 merge requests!20[Backport v2023dev1 -> v2022] apt-install: Pass --allow-remove-essential,!17apt-install: Pass --allow-remove-essential
Pipeline #401821 passed
apertis-flatdeb (0.2021.7) apertis; urgency=medium
* Pass --allow-remove-essential to apt install
-- Ryan Gonzalez <ryan.gonzalez@collabora.com> Thu, 18 Nov 2021 11:05:00 -0600
apertis-flatdeb (0.2021.6) apertis; urgency=medium
* Fix a quoting error in the runtime YAML
......
......@@ -107,7 +107,7 @@ def main():
packages.append(package)
subprocess.check_call(in_chroot + [
'apt-get', '-y',
'apt-get', '-y', '--allow-remove-essential',
] + options + ['install'] + packages)
subprocess.check_call(in_chroot + [
......
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