Fix selecting best distributive. Fix change filesystem.

master3.3
Mike Hiretsky 14 years ago
parent ad25cfdb7e
commit 2bba5332d8

@ -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)),

@ -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

Loading…
Cancel
Save