dpatch package is not available on ubuntu 24.04.
Change-Id: I604ee04561203fa7b2b69f6f7621a47524d2a553
Section: devel
Priority: optional
Maintainer: Adrian Schroeter <adrian@suse.de>
-Build-Depends: debhelper (>= 4), dpatch, cdbs,libc6,
+Build-Depends: debhelper (>= 4), cdbs, libc6
Standards-Version: 3.7.2
Package: build
;;
esac
# if there is such package, didn't mv.
- mv -n "$destfile" "$SRC" || cleanup_and_exit 1
+ if [ ! -f "$SRC" ]; then
+ # avoid race condition in multi-thread cases,
+ # and skip errors if $SRC exists, because nothing is moved in this case.
+ ln -PT "$destfile" "$SRC" && rm "$destfile" || true || cleanup_and_exit 1
+ fi
rm -rf $destdir
}