[elbe-devel] [PATCH] fstab: remove superflouous space from devicelabel generation

Torben Hohn torben.hohn at linutronix.de
Fri Apr 5 13:23:30 CEST 2019


in 2ae9639cebf3 ("pep8: fix E501 line too long (X > 79 characters)")
a subtle codechange was introduced, that inserted a space into the
devicelabel.

this resulted in "ubi 0:part" being inserted into /etc/fstab

fit it by removing the space

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/fstab.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/fstab.py b/elbepack/fstab.py
index d81b9528..5605670b 100644
--- a/elbepack/fstab.py
+++ b/elbepack/fstab.py
@@ -32,7 +32,7 @@ def get_mtdnum(xml, label):
 
 def get_devicelabel(xml, node):
     if node.text("fs/type") == "ubifs":
-        return "ubi %s:%s" % (get_mtdnum(xml, node.text("label")),
+        return "ubi%s:%s" % (get_mtdnum(xml, node.text("label")),
                               node.text("label"))
 
     return "LABEL=" + node.text("label")
-- 
2.11.0




More information about the elbe-devel mailing list