diff --git a/pym/cl_distr.py b/pym/cl_distr.py index b3046f9..5c9b091 100644 --- a/pym/cl_distr.py +++ b/pym/cl_distr.py @@ -130,7 +130,9 @@ class DistributiveRepository: if pathexists(pathjoin(path,'etc/calculate')): return [path] else: - return os.listdir(path) + # discard inner directories + return filter(lambda x:not os.path.isdir(pathjoin(path,x)), + os.listdir(path)) # get lists files in directories allFiles = map(lambda x: map(lambda y: pathjoin(x,y), listdistr(x)), diff --git a/pym/cl_install.py b/pym/cl_install.py index 755de94..81b484e 100644 --- a/pym/cl_install.py +++ b/pym/cl_install.py @@ -522,9 +522,12 @@ class convertDictOpt: dictUpdateProperty["mountPoint"] = optMountPoint supportedFS = self.getAllSupportFileSystemOpt() # if fs not specified and current fs not supported - if not optFileSystem and \ - not (format and format in supportedFS): - optFileSystem = "default" + if not optFileSystem: + if not (format and format in supportedFS): + optFileSystem = "default" + else: + dictUpdateProperty["fileSystem"] = format + # if specified fs if optFileSystem: # if specified wrong fs