webbuild.js: detect package as Python if name starting with 'py'
This commit is contained in:
parent
49bda1c6c3
commit
bdc9145d01
@ -106,7 +106,7 @@ function suggestSpecName(url) {
|
|||||||
if (document.getElementById("speccreatetype").options[j].value == "perl")
|
if (document.getElementById("speccreatetype").options[j].value == "perl")
|
||||||
document.getElementById("speccreatetype").options[j].selected=true;
|
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++) {
|
for (var j=0;j<document.getElementById("speccreatetype").length;j++) {
|
||||||
if (document.getElementById("speccreatetype").options[j].value == "python")
|
if (document.getElementById("speccreatetype").options[j].value == "python")
|
||||||
document.getElementById("speccreatetype").options[j].selected=true;
|
document.getElementById("speccreatetype").options[j].selected=true;
|
||||||
|
Loading…
Reference in New Issue
Block a user