[PATCH] Don't perform unnecessary str formatting on boot dev name (#875652)
Samantha N. Bueno
sbueno+anaconda at redhat.com
Wed Dec 5 14:25:38 UTC 2012
Remove some old cruft that was splitting a string into chars,
causing a space to be injected between each char upon calling join().
Resolves: rhbz#875652
---
booty/checkbootloader.py | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/booty/checkbootloader.py b/booty/checkbootloader.py
index d58df8e..a9bd970 100644
--- a/booty/checkbootloader.py
+++ b/booty/checkbootloader.py
@@ -101,12 +101,8 @@ def getBootDevString(line):
return dev
def getBootDevList(line):
- devs = string.split(line, '=')[1]
- rets = []
- for dev in devs:
- dev = getBootDevString("=%s" % (dev,))
- rets.append(dev)
- return string.join(rets)
+ dev = string.split(line, '=')[1]
+ return getBootDevString("=%s" % (dev,))
def getBootloaderTypeAndBoot(instRoot, storage):
haveGrubConf = 1
--
1.8.0
More information about the anaconda-patches
mailing list