search for: title_match

Displaying 2 results from an estimated 2 matches for "title_match".

2011 Jul 14
1
PyGrub And Grub2 Submenus
.../usr/lib/xen-4.0/bin/../lib/python/grub/GrubConf.py", line 400, in parse raise RuntimeError, "syntax error: closing brace without menuentry" RuntimeError: syntax error: closing brace without menuentry Looking at GrubConf.py, around line 400 we have this bit of logic: title_match = re.match(''^menuentry ["\''](.*)["\''] (.*){'', l) if title_match: if img is not None: raise RuntimeError, "syntax error: cannot nest menuentry (%d %s)" % (len(img),img) img = []...
2012 Jul 06
1
Bug#680479: xen-utils-4.0: pygrub does not support grub2 submenus
...nction = False img = None title = "" + submenu = 0 for l in lines: l = l.strip() # skip blank lines @@ -386,6 +387,12 @@ in_function = False continue + # new submenu + title_match = re.match('^submenu ["\'](.*)["\'] (.*){', l) + if title_match: + submenu += 1 + continue + # new image title_match = re.match('^menuentry ["\'](.*)["\'] (.*){', l) i...