[adjust-pages.pl] Add upper bound version support to patch helper#8912
Conversation
…If function Signed-off-by: Vitor Vasconcellos <vitor.vasconcellos@mercadolivre.com>
ac0fee8 to
6f43910
Compare
There was a problem hiding this comment.
Pull request overview
This PR enhances the patch helper system in adjust-pages.pl by adding optional upper bound version support. The change allows patches to be automatically skipped when the submodule version exceeds a specified maximum, without requiring code removal. This is useful for patches that address issues only present in a specific version range.
Changes:
- Extended
applyPatchOrPrintMsgIf()function to accept an optional 4th parameter$maxVersfor specifying version upper bounds - Added new version check logic that skips patches when submodule version exceeds
maxVers - Updated two existing patch calls to use the new
maxVersparameter, limiting them to version 1.53.0
|
@vitorvasc - btw, I haven't forgotten about this PR. I've just been feeling that we can do better. Here are some ideas.
WDYT? |
…add-maxvers-to-patch-helper Signed-off-by: Vitor Vasconcellos <vvasconcellos1@gmail.com>
784bd22 to
330739f
Compare
…ates Signed-off-by: Vitor Vasconcellos <vvasconcellos1@gmail.com>
|
@chalin, both ideas make sense and I agree with them! Just pushed a new commit with both implementations. PS: I'm not familiar with Perl, so I had my fellow Claude help me out with that. Let me know if you see any issues or opportunities to improve the file in general! |
…logging Signed-off-by: Vitor Vasconcellos <vvasconcellos1@gmail.com>
Signed-off-by: Vitor Vasconcellos <vvasconcellos1@gmail.com>
Signed-off-by: Vitor Vasconcellos <vvasconcellos1@gmail.com>
Signed-off-by: Vitor Vasconcellos <vvasconcellos1@gmail.com>
Signed-off-by: Vitor Vasconcellos <vvasconcellos1@gmail.com>
…es.md Signed-off-by: Vitor Vasconcellos <vvasconcellos1@gmail.com>
chalin
left a comment
There was a problem hiding this comment.
Nice! LGTM. We can later read the patch info from a file.
Is the current patch data up-to-date?
chalin
left a comment
There was a problem hiding this comment.
Actually, this is good as is. I'll followup with suggestions or a PR later.
|
Merging b/c I want to add a patch! :) |
$maxVerstoapplyPatchOrPrintMsgIf()function