Skip to content

Commit

Permalink
make unreferenced patches an error (haikuports#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
Habbie authored Mar 8, 2023
1 parent 9ba1c5c commit 5292dd5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions HaikuPorter/Port.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,9 @@ def validateRecipeFile(self, showWarnings=False):
fileExtension)
if (os.path.exists(self.patchesDir + '/' + patchFileName)
and patchFileName not in allPatches):
if showWarnings:
warn('Patch file %s is not referenced in '
'PATCHES, so it will not be used'
% patchFileName)
sysExit('Patch file %s is not referenced in '
'PATCHES, so it will not be used'
% patchFileName)

return recipeKeysByExtension, recipeConfig.definedPhases

Expand Down

0 comments on commit 5292dd5

Please sign in to comment.