Skip to content

Commit d2911a7

Browse files
authored
Fix bad empty-directory check
1 parent 2d5ef7f commit d2911a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonforandroid/recipes/sdl2_image/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def prebuild_arch(self, arch):
3232
line_split[-1].strip()
3333
)
3434
# Clone if needed
35-
if not os.path.exists(clone_path) or os.listdir(clone_path) == 0:
35+
if not os.path.exists(clone_path) or not os.listdir(clone_path):
3636
shprint(
3737
sh.git, "clone", url,
3838
"--depth", "1", "-b",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy