From 0812b285273111079e6314ac9294c8c2f38989ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Tue, 25 Aug 2026 13:50:11 -0400 Subject: [PATCH] Detect the missing official repo dbs by core.db, not any db pacstrap leaves the offline repo's db in the target's sync dir, so the any-db glob skipped the first-run update path on real installs. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01QKxGW1raAWaqeU8WdHsMsp --- bin/omarchy-cn-app-install | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/omarchy-cn-app-install b/bin/omarchy-cn-app-install index 9eefcb13..88f9d299 100755 --- a/bin/omarchy-cn-app-install +++ b/bin/omarchy-cn-app-install @@ -32,9 +32,10 @@ fi case "$source_type" in aur) - # Offline installs ship no sync db; yay then treats repo deps as AUR. - # System upgrades must go through the omarchy-update pipeline (pacman guard). - if ! compgen -G "/var/lib/pacman/sync/*.db" > /dev/null; then + # Offline installs leave only offline.db in sync; without the official + # repo dbs yay treats repo deps as AUR. Upgrades must go through the + # omarchy-update pipeline (pacman guard). + if [[ ! -f /var/lib/pacman/sync/core.db ]]; then if [[ ! -t 0 ]]; then echo "首次安装应用前请先完成一次系统更新: omarchy-update" >&2 exit 1