From bdc9145d015a575f1b968d8536320ddbda8e11b1 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 1 Feb 2014 15:12:03 +0100 Subject: [PATCH] webbuild.js: detect package as Python if name starting with 'py' --- webbuild/html/scripts/webbuild.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webbuild/html/scripts/webbuild.js b/webbuild/html/scripts/webbuild.js index 3a1b818..511d682 100644 --- a/webbuild/html/scripts/webbuild.js +++ b/webbuild/html/scripts/webbuild.js @@ -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