Watch
1
0
Fork
You've already forked souveraine
0

upower: remove the emptied parents after relocating, not just the subtree

An empty home/casey still ships and still trips the stray check. Runs 1234
and 1248 were both this guard, not the build.
This commit is contained in:
Fimeg 2026-07-27 14:54:04 -04:00
commit 684d1f9fd5

View file

@ -264,6 +264,11 @@ jobs:
echo "cross install leaked into $HOME/aarch64-sysroot — relocating"
cp -a "$LEAK/." "$DEST/"
rm -rf "$LEAK"
# Removing the sysroot subtree leaves its empty parents behind
# ($DEST/home/casey), and an empty directory still ships AND still
# trips the stray check below — which is how runs 1234 and 1248
# failed. The PKGBUILD copy of this had the rmdir; this one did not.
rmdir -p --ignore-fail-on-non-empty "$(dirname "$LEAK")" 2>/dev/null || true
fi
stray=$(find "$DEST" -mindepth 1 -maxdepth 1 \
! -name usr ! -name etc ! -name var -printf '%f\n')