mongodb-download
Advanced tools
Comparing version 2.1.5 to 2.1.6
@@ -459,13 +459,26 @@ "use strict"; | ||
var minor_version = ubuntu_version[1]; | ||
if (os.release == "14.04" || major_version > 14) { | ||
if (os.release === "12.04") { | ||
name += "1204"; | ||
} | ||
else if (os.release === "14.04") { | ||
name += "1404"; | ||
} | ||
else if (os.release == "12.04") { | ||
name += "1204"; | ||
} | ||
else if (os.release == "14.10") { | ||
else if (os.release === "14.10") { | ||
name += "1410-clang"; | ||
} | ||
else if (major_version === 14) { | ||
// default for major 14 to 1404 | ||
name += "1404"; | ||
} | ||
else if (os.release === "16.04") { | ||
name += "1604"; | ||
} | ||
else if (major_version === 16) { | ||
// default for major 16 to 1604 | ||
name += "1604"; | ||
} | ||
else { | ||
this.debug("using legacy release"); | ||
// this needs to default to legacy release, this is a BUG | ||
this.debug("selecting default Ubuntu release 1404"); | ||
name += "1404"; | ||
} | ||
@@ -472,0 +485,0 @@ return name; |
{ | ||
"name": "mongodb-download", | ||
"version": "2.1.5", | ||
"version": "2.1.6", | ||
"description": "download mongodb prebuilt packages from mongodb", | ||
@@ -5,0 +5,0 @@ "main": "built/mongodb-download.js", |
@@ -499,10 +499,21 @@ const os: any = require('os'); | ||
let minor_version: string = ubuntu_version[1]; | ||
if (os.release == "14.04" || major_version > 14) { | ||
if (os.release === "12.04") { | ||
name += "1204"; | ||
} else if (os.release === "14.04") { | ||
name += "1404"; | ||
} else if (os.release == "12.04") { | ||
name += "1204"; | ||
} else if (os.release == "14.10") { | ||
} else if (os.release === "14.10") { | ||
name += "1410-clang"; | ||
} else if (major_version === 14) { | ||
// default for major 14 to 1404 | ||
name += "1404"; | ||
} else if (os.release === "16.04") { | ||
name += "1604"; | ||
} else if (major_version === 16) { | ||
// default for major 16 to 1604 | ||
name += "1604"; | ||
} else { | ||
this.debug("using legacy release"); | ||
// this needs to default to legacy release, this is a BUG | ||
this.debug("selecting default Ubuntu release 1404"); | ||
name += "1404"; | ||
} | ||
@@ -509,0 +520,0 @@ return name; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
65659
1226