Skip to content

Commit

Permalink
Fix Index Boundary Error in parseCmakeLikeFile (#1470)
Browse files Browse the repository at this point in the history
  • Loading branch information
cerrussell authored Nov 28, 2024
1 parent 53c42d4 commit acc5350
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/helpers/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -10814,11 +10814,6 @@ export function getPipFrozenTree(
"Install suitable version of python or set the environment variable PYTHON_CMD.",
);
}
if (!result.stderr) {
console.log(
"Ensure the virtualenv package is installed using pip. `python -m pip install virtualenv`",
);
}
}
} else {
if (DEBUG_MODE) {
Expand Down Expand Up @@ -11685,7 +11680,8 @@ export function parseCmakeLikeFile(cmakeListFile, pkgType, options = {}) {
.split(")")[0]
.split(",")
.filter((v) => v.length > 1);
const parentName = tmpB[0].replace(":", "");
const parentName =
tmpB.length > 0 ? tmpB[0].replace(":", "").trim() : "";
let parentVersion = undefined;
// In case of meson.build we can find the version number after the word version
// thanks to our replaces and splits
Expand Down

0 comments on commit acc5350

Please sign in to comment.