Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

Commit

Permalink
Fix #445
Browse files Browse the repository at this point in the history
  • Loading branch information
reis authored Sep 22, 2022
1 parent 02a3c9a commit b0c3beb
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions utils/PatchesParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ module.exports = async function parsePatch(packageName, hasRoot) {

global.versions = [];

global.jarNames.patch = {
resources: false,
integrations: false
};

for (const patch of patchesList) {
const isRooted = rootedPatches.includes(patch.name);

Expand All @@ -42,11 +47,19 @@ module.exports = async function parsePatch(packageName, hasRoot) {
for (const dependencyName of patch.dependencies) {
if (dependencyName.includes('resource')) {
global.jarNames.patch.resources = true;
} else global.jarNames.patch.resources = false;
} else {
if (!global.jarNames.patch.resources) {
global.jarNames.patch.resources = false;
}
}

if (dependencyName.includes('integrations')) {
global.jarNames.patch.integrations = true;
} else global.jarNames.patch.integrations = false;
} else {
if (!global.jarNames.patch.integrations) {
global.jarNames.patch.integrations = false;
}
}
}

patches.push({
Expand Down

0 comments on commit b0c3beb

Please sign in to comment.