Some more cleanup

This commit is contained in:
Reinier Criel 2025-10-25 14:03:19 -07:00
parent 41fda7f6ed
commit 38d3b46939
4 changed files with 5 additions and 4 deletions

View file

@ -29,6 +29,7 @@ if (targetVersionMajor && String(targetVersionMajor).trim() === "3") {
}
// Set eco system
// This can be used in other parts of the code to determine which eco system we are working with
setEcoSystem("py");
initializePackageManager(packageManagerName);

View file

@ -7,7 +7,7 @@ export function getPipCommandForArgs(args) {
return null;
}
// The first non-flag argument is typically the command
// The first non-flag argument is the command
for (const arg of args) {
if (!arg.startsWith("-")) {
return arg;

View file

@ -14,7 +14,8 @@ export async function auditChanges(changes) {
);
for (const change of changes) {
console.log(" Safe-chain: auditing package:", change);
//Uncomment next line during manual testing
//console.log(" Safe-chain: auditing package:", change);
const malwarePackage = malwarePackages.find(
(pkg) => pkg.name === change.name && pkg.version === change.version
);

View file

@ -90,8 +90,7 @@ async function getMalwareDatabase() {
function isMalwareStatus(status) {
let malwareStatus = status.toUpperCase();
return malwareStatus === MALWARE_STATUS_MALWARE
|| malwareStatus === MALWARE_STATUS_TELEMETRY;
return malwareStatus === MALWARE_STATUS_MALWARE;
}
export const MALWARE_STATUS_OK = "OK";