Use git -C with xargs

This commit is contained in:
Ilya Fedin
2026-04-16 12:48:59 +00:00
committed by John Preston
parent 2cd90eb3ce
commit 6cc58e3701
3 changed files with 8 additions and 17 deletions

View File

@@ -411,11 +411,8 @@ parts:
override-pull: |
craftctl default
QT="$(grep 'set(QT_REPO_MODULE_VERSION' qtbase/.cmake.conf | sed -r 's/.*"(.*)".*/\1/')"
cd qtbase
find $CRAFT_STAGE/patches/qtbase_${QT} -type f -print0 | sort -z | xargs -r0 git apply
cd ../qtwayland
find $CRAFT_STAGE/patches/qtwayland_${QT} -type f -print0 | sort -z | xargs -r0 git apply
cd ..
find $CRAFT_STAGE/patches/qtbase_${QT} -type f -print0 | sort -z | xargs -r0 git -C qtbase apply
find $CRAFT_STAGE/patches/qtwayland_${QT} -type f -print0 | sort -z | xargs -r0 git -C qtwayland apply
prime: [-./*]
after:
- mozjpeg