From 962324a9fb2a91555a79f5ffb93f02efbdd127cb Mon Sep 17 00:00:00 2001 From: ZHANG Yuntian Date: Thu, 22 Aug 2024 17:52:31 +0800 Subject: [PATCH] fix: first fix-broken would actually remove broken package if no apt database Signed-off-by: ZHANG Yuntian --- src/libexec/rsdk/rsdk-chroot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libexec/rsdk/rsdk-chroot b/src/libexec/rsdk/rsdk-chroot index 4f4fa53..3e2d6f4 100755 --- a/src/libexec/rsdk/rsdk-chroot +++ b/src/libexec/rsdk/rsdk-chroot @@ -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 );