diff --git a/HaikuPorter/Port.py b/HaikuPorter/Port.py index 9af05005..0dd1454e 100644 --- a/HaikuPorter/Port.py +++ b/HaikuPorter/Port.py @@ -317,7 +317,9 @@ def validateRecipeFile(self, showWarnings=False): # collect all referenced patches into a single list if key in entries and entries[key]: for index in entries[key].keys(): - allPatches += entries[key][index] + allPatches += [ + e for e in entries[key][index] if not e.strip(' \t').startswith('#') + ] # store extension-specific value under base key recipeKeys[baseKey] = entries[key] diff --git a/HaikuPorter/Source.py b/HaikuPorter/Source.py index b6649a1c..ab4212d3 100644 --- a/HaikuPorter/Source.py +++ b/HaikuPorter/Source.py @@ -62,7 +62,8 @@ def __init__(self, port, index, uris, fetchTargetName, checksum, # make those absolute paths. if self.patches and port.patchesDir: self.patches = [ - port.patchesDir + '/' + patch for patch in self.patches + port.patchesDir + '/' + + patch for patch in self.patches if not patch.strip(' \t').startswith('#') ] # ADDITIONAL_FILES refers to the files relative to the additional-files