Page MenuHomeVyOS Platform

package-build: no-op patches directory check in build.py
Open, NormalPublic

Description

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.

Details

Version
rolling
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Internal change (not visible to end users)