Skip to content

Commit 42917bf

Browse files
committed
Fix key export path: resolve SITE_DIR to absolute
The script cd's into the apt tree to run dpkg-scanpackages/apt-ftparchive, so the relative APT_DIR was re-applied from inside it when exporting the public key, producing site/apt/site/apt/... and failing.
1 parent db629d3 commit 42917bf

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

scripts/publish-apt.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ DIST="stable"
2929
COMPONENT="main"
3030
ARCHES=(amd64 arm64)
3131

32+
# Resolve SITE_DIR to an absolute path: the script cd's into the apt tree to run
33+
# dpkg-scanpackages / apt-ftparchive, so a relative APT_DIR would be re-applied
34+
# from the wrong working directory afterwards.
35+
mkdir -p "${SITE_DIR}"
36+
SITE_DIR="$(cd "${SITE_DIR}" && pwd)"
3237
APT_DIR="${SITE_DIR}/apt"
3338

3439
if ! ls "${INCOMING_DIR}"/*.deb >/dev/null 2>&1; then

0 commit comments

Comments
 (0)