Skip to content

Commit f986651

Browse files
committed
Fix condition error
1 parent 989fde9 commit f986651

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

conan/internal/api/uploader.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import shutil
55
import tarfile
66
import time
7-
from pathlib import Path
87

98
from conan.internal.conan_app import ConanApp
109
from conan.api.output import ConanOutput

conan/internal/util/files.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def tar_extract(fileobj, destination_dir, compression_plugin=None, conf=None):
272272
the_tar.extraction_filter = (lambda member, path: member) # fully_trusted, avoid Py3.14 break
273273
the_tar.extractall(path=destination_dir)
274274
the_tar.close()
275-
if Path(destination_dir).glob(f"{COMPRESSED_PLUGIN_TAR_NAME}.*"):
275+
if list(Path(destination_dir).glob(f"{COMPRESSED_PLUGIN_TAR_NAME}.*")):
276276
raise ConanException(f"Error while extracting {os.path.basename(fileobj.name)}.\n"
277277
"This file has been compressed using a `compression` plugin.\n"
278278
"If your organization uses this plugin, ensure it is correctly installed on your environment.")
@@ -297,6 +297,7 @@ def _tar_extract_with_plugin(fileobj, destination_dir, compression_plugin, conf)
297297
else:
298298
# The tar was not compressed using the plugin, copy files to destination
299299
from conan.tools.files import copy
300+
ConanOutput().debug(f"Extracted in {time.time() - t1} time built in")
300301
copy(None, pattern="*", src=temp_dir, dst=destination_dir)
301302

302303
def merge_directories(src, dst):

0 commit comments

Comments
 (0)