From f068b4ab755416ce01ed2f33d467f5deb97e6f06 Mon Sep 17 00:00:00 2001 From: cflmy Date: Thu, 17 Sep 2026 10:05:23 +0800 Subject: [PATCH] fix(packaging): skip cp when orig tarball already in build-area Same-inode copy aborted ppa-build under set -e before dput. Co-authored-by: Cursor --- scripts/ppa-build-source.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/ppa-build-source.sh b/scripts/ppa-build-source.sh index d0d1cd2..ab01cb8 100755 --- a/scripts/ppa-build-source.sh +++ b/scripts/ppa-build-source.sh @@ -84,6 +84,10 @@ mkdir -p "$BUILD_AREA" shopt -s nullglob for f in ../marqdo_"${DEB_VER}"* ../marqdo_"${VER}".orig.tar.*; do [ -e "$f" ] || continue + # orig may already be a symlink into BUILD_AREA — skip same inode + if [ "$(realpath -m "$f")" = "$(realpath -m "$BUILD_AREA/$(basename "$f")")" ]; then + continue + fi cp -f "$f" "$BUILD_AREA/" done shopt -u nullglob