All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] cache: Create a symlink for current cachefile
@ 2019-07-04  4:12 Robert Yang
  2019-07-04  4:12 ` [PATCH 1/1] " Robert Yang
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Robert Yang @ 2019-07-04  4:12 UTC (permalink / raw)
  To: bitbake-devel

The following changes since commit 4fd9ee4670293632cc0ca1e64b8833eb6014435d:

  bitbake: bitbake: Add --skip-setscene option (2019-07-03 17:00:57 +0100)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib rbt/symlink
  http://git.pokylinux.org/cgit.cgi//log/?h=rbt/symlink

Robert Yang (1):
  cache: Create a symlink for current cachefile

 bitbake/lib/bb/cache.py | 8 ++++++++
 1 file changed, 8 insertions(+)

-- 
2.7.4



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/1] cache: Create a symlink for current cachefile
  2019-07-04  4:12 [PATCH 0/1] cache: Create a symlink for current cachefile Robert Yang
@ 2019-07-04  4:12 ` Robert Yang
  2019-07-11  7:21 ` [PATCH 0/1] " Robert Yang
  2019-07-18  3:11 ` Robert Yang
  2 siblings, 0 replies; 4+ messages in thread
From: Robert Yang @ 2019-07-04  4:12 UTC (permalink / raw)
  To: bitbake-devel

So that people or other tools can easily know which one is being used, just
like what we did for run.do_task and log.do_task, otherwise, we have no way
to know it. I usually use "ls -t", but it isn't reliable since the one which
is being used may not the latest one.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 bitbake/lib/bb/cache.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py
index 5fb2f17..c813d6a 100644
--- a/bitbake/lib/bb/cache.py
+++ b/bitbake/lib/bb/cache.py
@@ -399,6 +399,14 @@ class Cache(NoCache):
         else:
             logger.debug(1, "Cache file %s not found, building..." % self.cachefile)
 
+        symlink = os.path.join(self.cachedir, "bb_cache.dat")
+        if os.path.exists(symlink):
+            bb.utils.remove(symlink)
+        try:
+            os.symlink(os.path.basename(self.cachefile), symlink)
+        except OSError:
+            pass
+
     def load_cachefile(self):
         cachesize = 0
         previous_progress = 0
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/1] cache: Create a symlink for current cachefile
  2019-07-04  4:12 [PATCH 0/1] cache: Create a symlink for current cachefile Robert Yang
  2019-07-04  4:12 ` [PATCH 1/1] " Robert Yang
@ 2019-07-11  7:21 ` Robert Yang
  2019-07-18  3:11 ` Robert Yang
  2 siblings, 0 replies; 4+ messages in thread
From: Robert Yang @ 2019-07-11  7:21 UTC (permalink / raw)
  To: bitbake-devel, Richard Purdie

Hi RP,

Do you have any comments on this, please?

// Robert

On 7/4/19 12:12 PM, Robert Yang wrote:
> The following changes since commit 4fd9ee4670293632cc0ca1e64b8833eb6014435d:
> 
>    bitbake: bitbake: Add --skip-setscene option (2019-07-03 17:00:57 +0100)
> 
> are available in the git repository at:
> 
>    git://git.pokylinux.org/poky-contrib rbt/symlink
>    http://git.pokylinux.org/cgit.cgi//log/?h=rbt/symlink
> 
> Robert Yang (1):
>    cache: Create a symlink for current cachefile
> 
>   bitbake/lib/bb/cache.py | 8 ++++++++
>   1 file changed, 8 insertions(+)
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/1] cache: Create a symlink for current cachefile
  2019-07-04  4:12 [PATCH 0/1] cache: Create a symlink for current cachefile Robert Yang
  2019-07-04  4:12 ` [PATCH 1/1] " Robert Yang
  2019-07-11  7:21 ` [PATCH 0/1] " Robert Yang
@ 2019-07-18  3:11 ` Robert Yang
  2 siblings, 0 replies; 4+ messages in thread
From: Robert Yang @ 2019-07-18  3:11 UTC (permalink / raw)
  To: bitbake-devel, Richard Purdie

Hi RP,

Do you have any comments or concerns on this one, please?

// Robert

On 7/4/19 12:12 PM, Robert Yang wrote:
> The following changes since commit 4fd9ee4670293632cc0ca1e64b8833eb6014435d:
> 
>    bitbake: bitbake: Add --skip-setscene option (2019-07-03 17:00:57 +0100)
> 
> are available in the git repository at:
> 
>    git://git.pokylinux.org/poky-contrib rbt/symlink
>    http://git.pokylinux.org/cgit.cgi//log/?h=rbt/symlink
> 
> Robert Yang (1):
>    cache: Create a symlink for current cachefile
> 
>   bitbake/lib/bb/cache.py | 8 ++++++++
>   1 file changed, 8 insertions(+)
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-07-18  3:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-04  4:12 [PATCH 0/1] cache: Create a symlink for current cachefile Robert Yang
2019-07-04  4:12 ` [PATCH 1/1] " Robert Yang
2019-07-11  7:21 ` [PATCH 0/1] " Robert Yang
2019-07-18  3:11 ` Robert Yang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.