RFC: icedtea6 - fix non fatal mv warnings

Xerxes Rånby xerxes at zafena.se
Thu Feb 24 13:19:12 PST 2011


On 2011-02-24 17:23, Dr Andrew John Hughes wrote:
> On 16:33 Thu 24 Feb     , Xerxes Rånby wrote:
>> The attached patch fixes these non fatal icedtea6 mv warnings by correcting the code to actually check if the file exist before trying to move it.
>>
>> mv: cannot stat `cacao-6a5eda011e49.tar.gz': No such file or directory
>>
>> mv: cannot stat `jamvm-10329d9f3205698af125bba131b4f47339e81d90.tar.gz': No such file or directory
>>
>> mv: cannot stat `openjdk-6-src-b21-20_jan_2011.tar.gz': No such file or directory
>>
>> and
>>
>> mv: cannot stat `hotspot.tar.gz': No such file or directory
>>
>>
>> Cheers
>> Xerxes
>>
>>
>
> Sounds ok to me, but change the test to -e.  Otherwise, potentially a
> directory or symbolic link could exist with that name.  The former
> may not be common, but the latter is as the alt-src-zip support creates
> such links.
>

Thank you Andrew!
Changed to -e and committed:
http://icedtea.classpath.org/hg/icedtea6/rev/e5b29d42117e

Cheers
Xerxes



More information about the distro-pkg-dev mailing list