fix: create dists/error codename alias and fix cp -r overwrite bug

dists/error was never written to gh-pages because the codename alias
code was added after the v3.2.0 tag. The stable publish job only runs
on v*.*.* tags, so all subsequent pushes to release/3.x only touched
dists/testing. Bumping to v3.2.1 triggers stable publish to create it.

Also fix: cp -r src dst when dst already exists puts src inside dst
rather than replacing it. Add rm -rf before cp -r to guarantee a clean
replace on every stable release.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Kevin Adams 2026-06-22 08:25:46 -04:00
parent c698801338
commit 64b430f182
5 changed files with 23 additions and 1 deletions

View File

@ -450,9 +450,11 @@ jobs:
# Create codename alias directories (e.g. dists/error/ mirrors dists/v3/) # Create codename alias directories (e.g. dists/error/ mirrors dists/v3/)
# so that both Suite ("v3") and Codename ("error") work in sources.list. # so that both Suite ("v3") and Codename ("error") work in sources.list.
# rm -rf first: cp -r puts src inside dst when dst already exists.
for DIST in $DISTS; do for DIST in $DISTS; do
CODENAME=$(_dist_codename "$DIST") CODENAME=$(_dist_codename "$DIST")
if [[ "$CODENAME" != "$DIST" ]]; then if [[ "$CODENAME" != "$DIST" ]]; then
rm -rf "${PAGES_DIR}/dists/${CODENAME}"
cp -r "${PAGES_DIR}/dists/${DIST}" "${PAGES_DIR}/dists/${CODENAME}" cp -r "${PAGES_DIR}/dists/${DIST}" "${PAGES_DIR}/dists/${CODENAME}"
fi fi
done done

View File

@ -1,3 +1,9 @@
truenas-proxmox-multipath (3.2.1-1) bookworm; urgency=low
* Version bump to match truenas-proxmox 3.2.1; no functional changes
-- KSA Technologies, LLC <theprofessor@ksatechnologies.com> Sun, 22 Jun 2026 00:00:00 +0000
truenas-proxmox-multipath (3.1.0-1) bookworm; urgency=low truenas-proxmox-multipath (3.1.0-1) bookworm; urgency=low
* Initial release — kernel iSCSI multipath via iscsiadm + dm-multipath * Initial release — kernel iSCSI multipath via iscsiadm + dm-multipath

View File

@ -1,3 +1,9 @@
freenas-proxmox (3.2.1-1) bookworm; urgency=low
* Version bump to match truenas-proxmox 3.2.1; no functional changes
-- KSA Technologies, LLC <theprofessor@ksatechnologies.com> Sun, 22 Jun 2026 00:00:00 +0000
freenas-proxmox (3.0.0-1) bookworm; urgency=low freenas-proxmox (3.0.0-1) bookworm; urgency=low
* Transitional package — installs truenas-proxmox automatically * Transitional package — installs truenas-proxmox automatically

View File

@ -1,3 +1,11 @@
truenas-proxmox (3.2.1-1) bookworm; urgency=low
* Fix apt codename alias 'error' — dists/error was never created because
codename alias code was added after v3.2.0 tag; also fix cp -r overwrite
bug that would corrupt dists/error on second+ stable releases
-- KSA Technologies, LLC <theprofessor@ksatechnologies.com> Sun, 22 Jun 2026 00:00:00 +0000
truenas-proxmox (3.0.0-1) bookworm; urgency=medium truenas-proxmox (3.0.0-1) bookworm; urgency=medium
* Full rewrite as native PVE::Storage::Custom plugin — no PVE core patches * Full rewrite as native PVE::Storage::Custom plugin — no PVE core patches

View File

@ -29,7 +29,7 @@ use PVE::Storage::Plugin;
use base qw(PVE::Storage::Plugin); use base qw(PVE::Storage::Plugin);
our $VERSION = '3.2.0'; our $VERSION = '3.2.1';
# Per-host runtime state cache # Per-host runtime state cache
my $state = {}; my $state = {};