[platform] gives discernible names to downloaded patches (IDEA-198858)

This commit is contained in:
Roman Shevchenko
2018-11-09 20:24:30 +01:00
parent 46cc43a6b2
commit ea26436839
@@ -43,7 +43,7 @@ object UpdateInstaller {
val from = chain[i - 1].withoutProductCode().asString()
val to = chain[i].withoutProductCode().asString()
val patchName = "${product}-${from}-${to}-patch${jdk}-${PatchInfo.OS_SUFFIX}.jar"
val patchFile = File(getTempDir(), "patch${i}.jar")
val patchFile = File(getTempDir(), "${product}-patch${i}-${from}-${to}.jar")
val url = URL(patchesUrl, patchName).toString()
val partIndicator = object : DelegatingProgressIndicator(indicator) {
override fun setFraction(fraction: Double) {