aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2015-11-08 18:04:04 -0800
committerBrian Dolbec <dolsen@gentoo.org>2015-11-08 18:04:04 -0800
commit426c2f17a3bc6f22a7397854964ec5ba7a33f96d (patch)
tree921d9cb215acea0b89638da78151dc3ecb177abd /catalyst
parentstagebase.py: Clean up some long lines (diff)
downloadcatalyst-426c2f17a3bc6f22a7397854964ec5ba7a33f96d.tar.gz
catalyst-426c2f17a3bc6f22a7397854964ec5ba7a33f96d.tar.bz2
catalyst-426c2f17a3bc6f22a7397854964ec5ba7a33f96d.zip
support.py: Make file_check restrict it's short test to os.path.isfile()
This avoids seedcache being disabled but having a directory of the same name as the seed it is looking for.
Diffstat (limited to 'catalyst')
-rw-r--r--catalyst/support.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/catalyst/support.py b/catalyst/support.py
index 380c1c1d..4bf1b227 100644
--- a/catalyst/support.py
+++ b/catalyst/support.py
@@ -59,7 +59,7 @@ def file_check(filepath):
'''Check for the files existence and that only one exists
if others are found with various extensions
'''
- if os.path.exists(filepath):
+ if os.path.isfile(filepath):
return filepath
# it didn't exist
# so check if there are files of that name with an extension