ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Endre Zoltan Kovacs via Review Board <nore...@reviews.apache.org>
Subject Re: Review Request 61931: fixing jdk download url in ranger dockerizing script
Date Fri, 01 Sep 2017 13:11:22 GMT


> On Aug. 31, 2017, 10:28 p.m., Don Bosco Durai wrote:
> > Couldn't apply the patch
> > git apply -check 0001RANGER-1739-replaced-broken-Oracle-link-of-JDK8.patch 
> > fatal: git diff header lacks filename information when removing 1 leading pathname
component (line 14)
> > 
> > Manually apply the changes worked.
> > 
> > Please fix the patch file and commit.
> > 
> > Thanks

hi @bosco
You can check/apply this patch by

git apply -p0 --check 0001-RANGER-1739-replaced-broken-Oracle-link-of-JDK8.patch


The -p0 flag specifies how many leading slashes should be removed from the path specified
in the patch. since the patch is patching a file in the root of the repo, and the patch itself
has only the file name and no path, -p0 should be specified.


(-p<n>
           Remove <n> leading slashes from traditional diff paths. The default is 1)
           
The patch itself was created by following the guide at https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=55151244
So not sure why this was necessary...
Thanks for the review.
Cheers,
Endre


- Endre Zoltan


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/61931/#review184321
-----------------------------------------------------------


On Aug. 28, 2017, 7 a.m., Endre Zoltan Kovacs wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/61931/
> -----------------------------------------------------------
> 
> (Updated Aug. 28, 2017, 7 a.m.)
> 
> 
> Review request for ranger and Don Bosco Durai.
> 
> 
> Bugs: RANGER-1739
>     https://issues.apache.org/jira/browse/RANGER-1739
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> RANGER-1739: dockerizing script cannot download jdk8
> 
> 
> Diffs
> -----
> 
>   build_ranger_using_docker.sh fb722344 
> 
> 
> Diff: https://reviews.apache.org/r/61931/diff/1/
> 
> 
> Testing
> -------
> 
> without this script fails to download jdk8:
> 
> HTTP request sent, awaiting response... 404 Not Found
> 2017-08-17 14:17:29 ERROR 404: Not Found.
> 
> with this patch it downloads it nicely
> 
> 
> Thanks,
> 
> Endre Zoltan Kovacs
> 
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message