patchupdate.py: Replace '.' with underscore for patchinstall.sh script.

This commit is contained in:
Sebastian Lackner
2015-02-08 15:02:51 +01:00
parent 39787f3608
commit 340a8a9e73
2 changed files with 4 additions and 4 deletions

View File

@@ -505,7 +505,7 @@ def generate_script(all_patches):
lines.append("patch_enable_all ()\n")
lines.append("{\n")
for i, patch in sorted([(i, all_patches[i]) for i in resolved], key=lambda x:x[1].name):
patch.variable = "enable_%s" % patch.name.replace("-","_")
patch.variable = "enable_%s" % patch.name.replace("-","_").replace(".","_")
lines.append("\t%s=\"$1\"\n" % patch.variable)
lines.append("}\n")
lines.append("\n")