]> code.ossystems Code Review - openembedded-core.git/commit
license.bbclass: hardlink requires write permission
authorRobert Yang <liezhi.yang@windriver.com>
Thu, 13 Nov 2014 07:55:58 +0000 (23:55 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 24 Dec 2014 17:48:57 +0000 (17:48 +0000)
commitebc185186c36fe839008d94dbfb779383df960c7
treec9e9877ad01847d8b4bf9657b98714d063f58937
parentdfc99740bd3530baead1703b3a772b17a1c58acc
license.bbclass: hardlink requires write permission

Fixed:
* The os.link() reqiures write permission on the src file (suppose the
  src file belongs to another user, then you need write permission to harlink to
  it since the link count would change)

* Print more info when failed to copy
  The warning was like:
  WARNING: Could not copy license file COPYING: [Errno 1] Operation not permitted

  We couldn't know which recipe print the warning from this message.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/license.bbclass