Skip to content

Commit 6f70522

Browse files
committed
update: commons-compress 1.26.1
1 parent 19165a1 commit 6f70522

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ repositories {
2929
dependencies {
3030
api("com.github.jknack:handlebars:4.3.1")
3131
api("org.seleniumhq.selenium:selenium-java:4.18.1")
32-
implementation("org.apache.commons:commons-compress:1.26.0")
32+
implementation("org.apache.commons:commons-compress:1.26.1")
3333
implementation("org.tukaani:xz:1.9")
3434
implementation("me.him188:kotlin-jvm-blocking-bridge-runtime:3.0.0-180.1")
3535
testImplementation(kotlin("test"))

src/main/kotlin/xyz/cssxsh/selenium/SeleniumInit.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ internal fun setupFirefoxDriver(folder: File): RemoteWebDriverSupplier {
688688
.let(::GzipCompressorInputStream)
689689
.let(::TarArchiveInputStream)
690690
.use { input ->
691-
val entry = input.nextTarEntry
691+
val entry = input.nextEntry
692692
driver.parentFile.mkdirs()
693693
driver.outputStream().use { output ->
694694
input.copyTo(output)
@@ -910,7 +910,7 @@ internal fun setupFirefox(folder: File, version: String): File {
910910
pack.writeBytes(bytes)
911911

912912
try {
913-
SevenZFile(pack).use { input ->
913+
SevenZFile.builder().setFile(pack).get().use { input ->
914914
for (entry in input.entries) {
915915
if (entry.isDirectory) continue
916916
// println(entry.name)
@@ -957,7 +957,7 @@ internal fun setupFirefox(folder: File, version: String): File {
957957
.let(::TarArchiveInputStream)
958958
.use { input ->
959959
while (true) {
960-
val entry = input.nextTarEntry ?: break
960+
val entry = input.nextEntry ?: break
961961
if (entry.isFile.not()) continue
962962
if (input.canReadEntryData(entry).not()) continue
963963
val target = folder.resolve(entry.name)
@@ -1145,7 +1145,7 @@ internal fun setupChromium(folder: File, version: String): File {
11451145
val pack = download(urlString = url, folder = folder, filename = url.substringAfterLast('/'))
11461146

11471147
try {
1148-
SevenZFile(pack).use { input ->
1148+
SevenZFile.builder().setFile(pack).get().use { input ->
11491149
for (entry in input.entries) {
11501150
if (entry.isDirectory) continue
11511151
val target = folder.resolve(entry.name)
@@ -1184,7 +1184,7 @@ internal fun setupChromium(folder: File, version: String): File {
11841184
.let(::TarArchiveInputStream)
11851185
.use { input ->
11861186
while (true) {
1187-
val entry = input.nextTarEntry ?: break
1187+
val entry = input.nextEntry ?: break
11881188
if (entry.isFile.not()) continue
11891189
if (input.canReadEntryData(entry).not()) continue
11901190
val target = folder.resolve(entry.name)
@@ -1220,7 +1220,7 @@ internal fun setupChromium(folder: File, version: String): File {
12201220
.let(::TarArchiveInputStream)
12211221
.use { input ->
12221222
while (true) {
1223-
val entry = input.nextTarEntry ?: break
1223+
val entry = input.nextEntry ?: break
12241224
if (entry.isFile.not()) continue
12251225
if (input.canReadEntryData(entry).not()) continue
12261226
val target = setup.resolve(entry.name)

0 commit comments

Comments
 (0)