From a6059bd1fd30e0ba2ecde6103d1ad5363cc4ab01 Mon Sep 17 00:00:00 2001 From: TraceLumen Date: Thu, 10 Sep 2026 18:45:16 +0300 Subject: [PATCH] pkg download delete -X (save xattrs data) rsync flag --- install.sh | 2 +- src/commands/download.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 159f62d..2a94255 100755 --- a/install.sh +++ b/install.sh @@ -22,7 +22,7 @@ cp -f "$SCRIPT_DIR/target/release/pkg" "$SCRIPT_DIR/target/release/bin" echo "Installing to '$INSTALL_PATH'..." rsync -a --delete --exclude='etc/' "$SCRIPT_DIR/assets/" "$SCRIPT_DIR/target/release/bin" "$INSTALL_PATH/" PATH="/bin:/pkg/musl/bin:/pkg/musl/sbin:/pkg/gnu/bin:/pkg/gnu/sbin" chroot /mnt/aerolinux /pkg/gnu/aeropkg/bin/pkg link aeropkg -rsync -a --delete --exclude='etc/index-conflict.md' "$SCRIPT_DIR/assets/" "$SCRIPT_DIR/target/release/bin" air:"$INSTALL_PATH/" +rsync -a --delete --exclude='etc/' "$SCRIPT_DIR/assets/" "$SCRIPT_DIR/target/release/bin" air:"$INSTALL_PATH/" ssh air /pkg/gnu/aeropkg/bin/pkg link aeropkg rsync -a --delete --exclude='etc/index-conflict.md' "$SCRIPT_DIR/assets/" "$SCRIPT_DIR/target/release/bin" aura:"$INSTALL_PATH/" ssh aura /pkg/gnu/aeropkg/bin/pkg link aeropkg diff --git a/src/commands/download.rs b/src/commands/download.rs index 1b60ecd..ae612e7 100644 --- a/src/commands/download.rs +++ b/src/commands/download.rs @@ -94,7 +94,7 @@ pub fn download(repo: &String, pkgname: &String, force: bool, recursive: bool) { io::stdout().flush().unwrap(); let mut cmd = Command::new("rsync"); - cmd.arg("-azHX").arg("--stats"); + cmd.arg("-azH").arg("--stats"); if force { cmd.arg("--delete"); } cmd.arg(&remote_path); cmd.arg(&local_path_sync);