config: Just ignore if we can't create the directory

This commit is contained in:
Fatih Aşıcı
2010-10-01 08:32:17 +00:00
parent b13b43f15c
commit 9696a5e2d0
+6 -1
View File
@@ -90,8 +90,13 @@ class Config(object):
def subdir(self, path):
subdir = pisi.util.join_path(self.dest_dir(), path)
if os.access(os.path.dirname(subdir), os.W_OK):
# If the directory does not exist, try to create it.
try:
pisi.util.ensure_dirs(subdir)
except OSError:
pass
return subdir
def log_dir(self):