[Intel-gfx] [dim PATCH] dim: restore cd in update_rerere_cache()

Jani Nikula jani.nikula at intel.com
Tue Jul 18 08:06:41 UTC 2017


On Tue, 18 Jul 2017, Archit Taneja <architt at codeaurora.org> wrote:
> On 07/18/2017 01:20 PM, Daniel Vetter wrote:
>> On Tue, Jul 18, 2017 at 10:15:25AM +0300, Jani Nikula wrote:
>>> The refactoring dropped a cd to the drm-rerere dir, leading to "cp:
>>> cannot stat 'rr-cache/*': No such file or directory" on dim ub.
>>>
>>> Reported-by: Archit Taneja <architt at codeaurora.org>
>>> Fixes: 599eb3db59c9 ("dim: Move all rerere updating into helpers")
>>> Cc: Daniel Vetter <daniel.vetter at ffwll.ch>
>>> Cc: Sean Paul <seanpaul at chromium.org>
>>> Signed-off-by: Jani Nikula <jani.nikula at intel.com>
>> 
>> Thx for spotting this.
>> 
>> Reviewed-by: Daniel Vetter <daniel.vetter at ffwll.ch>
>
> Thanks, works for me now.
>
> Tested-by: Archit Taneja <architt at codeaurora.org>

Thanks, pushed.

BR,
Jani.


>
>>> ---
>>>   dim | 1 +
>>>   1 file changed, 1 insertion(+)
>>>
>>> diff --git a/dim b/dim
>>> index 1fcd8d73fe1e..6ba2c085be16 100755
>>> --- a/dim
>>> +++ b/dim
>>> @@ -495,6 +495,7 @@ function update_rerere_cache
>>>   {
>>>   	echo -n "Updating rerere cache... "
>>>   
>>> +	cd $DIM_PREFIX/drm-rerere/
>>>   	git pull
>>>   	mkdir $(rr_cache_dir) &> /dev/null || true
>>>   	cp rr-cache/* $(rr_cache_dir) -r --preserve=timestamps
>>> -- 
>>> 2.11.0
>>>
>> 

-- 
Jani Nikula, Intel Open Source Technology Center


More information about the Intel-gfx mailing list