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 <cursoragent@cursor.com>
This commit is contained in:
1 parent
26e29409a9
commit
f068b4ab75
1 file changed
+4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user