webbuild minor fixes/changes
This commit is contained in:
parent
4a3e61c551
commit
dd25ac7678
@ -78,6 +78,8 @@ function suggestSpecName(url) {
|
||||
specname="perl-"+specname;
|
||||
} else if (url.search("haskell.org") >= 0) {
|
||||
specname="ghc-"+specname;
|
||||
} else if (url.search("pypi") >= 0) {
|
||||
specname="python-"+specname.replace('.','-');
|
||||
} else if (extension == "gem") {
|
||||
specname="ruby-"+specname;
|
||||
} else {
|
||||
@ -115,7 +117,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) || (specname.substring(0,2) == "py")) {
|
||||
} else if ((specname.search("python-") >= 0) || (specname.substring(0,2) == "py") || (url.search("pypi") >= 0)) {
|
||||
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;
|
||||
|
@ -211,6 +211,10 @@ function webbuild_status_getvalues() {
|
||||
xmlhttp.onreadystatechange = function() {
|
||||
if (xmlhttp.readyState != 4)
|
||||
return;
|
||||
if (xmlhttp.responseXML == undefined) {
|
||||
console.log("RESPONSE ERROR: check URL " + url);
|
||||
return;
|
||||
}
|
||||
var xmldoc = xmlhttp.responseXML.documentElement;
|
||||
if (xmldoc == undefined) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user