Skip to content

Commit

Permalink
fix: first fix-broken would actually remove broken package if no apt …
Browse files Browse the repository at this point in the history
…database

Signed-off-by: ZHANG Yuntian <[email protected]>
  • Loading branch information
RadxaYuntian committed Aug 22, 2024
1 parent 6e601cd commit 962324a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libexec/rsdk/rsdk-chroot
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ main() {
sudo cp "$file" "$RSDK_TEMP"
sudo systemd-nspawn -D "$RSDK_TEMP" bash -c \
"if ! dpkg -i '/$(basename "$file")'; then
apt-get install -y --fix-missing --fix-broken --allow-downgrades || (
apt-get install -y --fix-missing --allow-downgrades || (
apt-get update;
apt-get install -y --fix-missing --fix-broken --allow-downgrades
);
Expand Down

0 comments on commit 962324a

Please sign in to comment.