You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
calculate-overlay/sys-apps/calculate-lib/files/calculate-lib-3.1.5-r2.patch

29 lines
1.1 KiB

diff --git calculate/lib/utils/files.py calculate/lib/utils/files.py
index cd94e92..34c3bc8 100644
--- calculate/lib/utils/files.py
+++ calculate/lib/utils/files.py
@@ -732,9 +732,11 @@ class FStab(object):
def rebuildCache(self):
"""Rebuild cache from fstab file"""
+ def setlen(ar):
+ return ar[:6]+[""]*(6-len(ar))
self.cache = \
- map(lambda x:map(lambda y:y.strip(),x.split()),
- filter(lambda x:x and not x.lstrip().startswith("#"),
+ map(lambda x:setlen(map(lambda y:y.strip(),x.split())),
+ filter(lambda x:x.strip() and not x.lstrip().startswith("#"),
open(self.fstab_file,'r').read().split('\n')))
for data in self.cache:
convertDev = lambda x: path.realpath(x) if x.startswith('/') else x
diff --git calculate/lib/variables/__init__.py calculate/lib/variables/__init__.py
index 415d5ef..1fac4d6 100644
--- calculate/lib/variables/__init__.py
+++ calculate/lib/variables/__init__.py
@@ -25,4 +25,4 @@ class VariableClVer(ReadonlyVariable):
"""
Package version
"""
- value = "3.1.5"
+ value = "3.1.5.1"