Support IGs with main not master
This commit is contained in:
parent
30daa9dd26
commit
d820260184
|
@ -529,7 +529,12 @@ public class FilesystemPackageCacheManager extends BasePackageCacheManager imple
|
||||||
checkBuildLoaded();
|
checkBuildLoaded();
|
||||||
if (ciList.containsKey(id)) {
|
if (ciList.containsKey(id)) {
|
||||||
if (branch == null) {
|
if (branch == null) {
|
||||||
InputStream stream = fetchFromUrlSpecific(Utilities.pathURL(ciList.get(id), "package.tgz"), false);
|
InputStream stream;
|
||||||
|
try {
|
||||||
|
stream = fetchFromUrlSpecific(Utilities.pathURL(ciList.get(id), "package.tgz"), false);
|
||||||
|
} catch (Exception e) {
|
||||||
|
stream = fetchFromUrlSpecific(Utilities.pathURL(ciList.get(id), "branches", "main", "package.tgz"), false);
|
||||||
|
}
|
||||||
return new InputStreamWithSrc(stream, Utilities.pathURL(ciList.get(id), "package.tgz"), "current");
|
return new InputStreamWithSrc(stream, Utilities.pathURL(ciList.get(id), "package.tgz"), "current");
|
||||||
} else {
|
} else {
|
||||||
InputStream stream = fetchFromUrlSpecific(Utilities.pathURL(ciList.get(id), "branches", branch, "package.tgz"), false);
|
InputStream stream = fetchFromUrlSpecific(Utilities.pathURL(ciList.get(id), "branches", branch, "package.tgz"), false);
|
||||||
|
|
Loading…
Reference in New Issue