In scripts/package-build/build.py, patch application is guarded by if (repo_dir / 'patches'):. A pathlib.Path is always truthy, so the check never skips anything, and it looks at the package source tree rather than patch_dir / <package>, where patches actually come from. apply_patches() already handles a missing or empty patch directory.
The check is dead code with a misleading comment and should be removed. No behaviour change.