webbuild.js: detect package as Python if name starting with 'py'

This commit is contained in:
Silvan Calarco 2014-02-01 15:12:03 +01:00
parent 49bda1c6c3
commit bdc9145d01

View File

@ -106,7 +106,7 @@ function suggestSpecName(url) {
if (document.getElementById("speccreatetype").options[j].value == "perl")
document.getElementById("speccreatetype").options[j].selected=true;
};
} else if (specname.search("python-") >= 0) {
} else if ((specname.search("python-") >= 0) || (specname.substring(0,2) == "py")) {
for (var j=0;j<document.getElementById("speccreatetype").length;j++) {
if (document.getElementById("speccreatetype").options[j].value == "python")
document.getElementById("speccreatetype").options[j].selected=true;