Skip to content
This repository was archived by the owner on Jul 30, 2026. It is now read-only.

Commit 7fae26b

Browse files
committed
fix: avoid copying over pacman repo symlinks
1 parent 1fd1897 commit 7fae26b

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

scripts/publish-linux-repos.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,14 @@ cp "$pacman_pkg" "$pacman_repo_pkg"
105105
(
106106
cd "$pacman_root"
107107
repo-add "$repo_name.db.tar.gz" "$(basename "$pacman_repo_pkg")"
108-
cp "$repo_name.db.tar.gz" "$repo_name.db"
109-
cp "$repo_name.files.tar.gz" "$repo_name.files"
108+
109+
cp -f --remove-destination "$repo_name.db.tar.gz" "$repo_name.db"
110+
cp -f --remove-destination "$repo_name.files.tar.gz" "$repo_name.files"
111+
110112
gpg_sign \
111113
--detach-sign --armor -o "$repo_name.db.tar.gz.sig" "$repo_name.db.tar.gz"
112-
cp "$repo_name.db.tar.gz.sig" "$repo_name.db.sig"
114+
115+
cp -f --remove-destination "$repo_name.db.tar.gz.sig" "$repo_name.db.sig"
113116
)
114117

115118
cat > "$pages_dir/linux/index.html" <<HTML

0 commit comments

Comments
 (0)