File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -90,17 +90,8 @@ class CDKInstall extends InstallableItem {
9090
9191 if ( ! fs . existsSync ( path . join ( this . downloadFolder , this . ocFileName ) ) ) {
9292 let ocWriteStream = fs . createWriteStream ( this . ocDownloadedFile ) ;
93- if ( ! this . ocUrl . endsWith ( '.zip' ) ) {
94- request ( this . ocUrl , ( err , rsp , body ) => {
95- var fname = body . match ( / o p e n s h i f t - o r i g i n - c l i e n t - t o o l s - v \w ( \. \w ) { 1 , 2 } - \w { 1 , 3 } - \w { 8 } - \w { 7 } - w i n d o w s \. z i p / ) [ 0 ] ;
96- this . downloader . setWriteStream ( ocWriteStream ) ;
97- this . ocUrl = this . ocUrl . concat ( fname ) ;
98- this . downloader . download ( this . ocUrl ) ;
99- } ) ;
100- } else {
101- this . downloader . setWriteStream ( ocWriteStream ) ;
102- this . downloader . download ( this . ocUrl ) ;
103- }
93+ this . downloader . setWriteStream ( ocWriteStream ) ;
94+ this . downloader . download ( this . ocUrl ) ;
10495 } else {
10596 this . ocDownloadedFile = path . join ( this . downloadFolder , this . ocFileName ) ;
10697 this . downloader . closeHandler ( ) ;
Original file line number Diff line number Diff line change 2424 "description" : " The Open Source Container Application Platform" ,
2525 "bundle" : " yes" ,
2626 "version" : " 1.2.0" ,
27- "url" : " https://github. com/openshift/origin/releases/download/v1.2.0/openshift -origin-client-tools-v1 .2.0-2e62fab-windows.zip " ,
28- "filename" : " openshift-origin-client-tools-v1.1.6-ef1caba -windows.zip" ,
27+ "url" : " https://developers.redhat. com/redirect/to/oc -origin-cli-1 .2.0.download " ,
28+ "filename" : " openshift-origin-client-tools-v1.2.0-2e62fab -windows.zip" ,
2929 "sha256sum" : " 3df3d7f31d5f50fa49f94312883107ebee1a0877b598eada32dce1b029f6c3f2" ,
3030 "vendor" : " Red Hat, Inc."
3131 },
3434 "description" : " A distribution of popular GNU and other Open Source tools running on Microsoft Windows" ,
3535 "bundle" : " yes" ,
3636 "version" : " 2.5.2" ,
37- "url" : " https://cygwin. com/setup-x86_64.exe " ,
38- "filename" : " cygwin_2.5.1_0.297_5_3 .exe" ,
37+ "url" : " https://developers.redhat. com/redirect/to/cygwin-installer-2.5.2.download " ,
38+ "filename" : " cygwin_2.5.2 .exe" ,
3939 "sha256sum" : " 58f9f42f5dbd52c5e3ecd24e537603ee8897ea15176b7acdc34afcef83e5c19a" ,
4040 "vendor" : " Community Project"
4141 },
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ function checkRequirements() {
1717 //to check if the url looks like it points to what it is supposed to
1818 fileNames [ 'cdk.zip' ] = 'cdk' ;
1919 fileNames [ 'rhel-vagrant-virtualbox.box' ] = 'rhel-cdk' ;
20- fileNames [ 'oc.zip' ] = 'origin-client-tools ' ;
20+ fileNames [ 'oc.zip' ] = 'oc- origin-cli ' ;
2121 fileNames [ 'cygwin.exe' ] = 'cygwin' ;
2222 fileNames [ 'jbds.jar' ] = 'devstudio' ;
2323 fileNames [ 'jdk.msi' ] = 'openjdk' ;
You can’t perform that action at this time.
0 commit comments