Patchwork [bitbake-devel,03/11] cooker: add package rdepends and rrecommends info

login
register
mail settings
Submitter Dongxiao Xu
Date March 14, 2012, 9:26 a.m.
Message ID <fc84bca12f1b86e02f2f956803ed448747442517.1331716896.git.dongxiao.xu@intel.com>
Download mbox | patch
Permalink /patch/23285/
State Accepted
Commit 5eab31ad9e9431e27725dcefa38cbd7f2e37d394
Headers show

Comments

Dongxiao Xu - March 14, 2012, 9:26 a.m.
When calculating the image installation dependency, we need the
rdepends and rrecommends information of certain packages.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
---
 lib/bb/cooker.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
Joshua Lock - March 14, 2012, 7:37 p.m.
On 14/03/12 02:26, Dongxiao Xu wrote:
> When calculating the image installation dependency, we need the
> rdepends and rrecommends information of certain packages.
>
> Signed-off-by: Dongxiao Xu<dongxiao.xu@intel.com>

Signed-off-by: Joshua Lock <josh@linux.intel.com>

> ---
>   lib/bb/cooker.py |    4 +++-
>   1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
> index 78d8754..eada435 100644
> --- a/lib/bb/cooker.py
> +++ b/lib/bb/cooker.py
> @@ -479,7 +479,6 @@ class BBCooker:
>                   depend_tree["pn"][pn]["license"] = lic
>                   depend_tree["pn"][pn]["section"] = section
>                   depend_tree["pn"][pn]["description"] = description
> -                depend_tree["pn"][pn]["packages"] = rdepends.keys()
>
>               if fnid not in seen_fnids:
>                   seen_fnids.append(fnid)
> @@ -510,6 +509,9 @@ class BBCooker:
>                           pn_rprovider = item
>                       depend_tree["rdepends-pn"][pn].append(pn_rprovider)
>
> +                depend_tree["rdepends-pkg"].update(rdepends)
> +                depend_tree["rrecs-pkg"].update(rrecs)
> +
>           return depend_tree
>
>       def generateDepTreeEvent(self, pkgs_to_build, task):

Patch

diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 78d8754..eada435 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -479,7 +479,6 @@  class BBCooker:
                 depend_tree["pn"][pn]["license"] = lic
                 depend_tree["pn"][pn]["section"] = section
                 depend_tree["pn"][pn]["description"] = description
-                depend_tree["pn"][pn]["packages"] = rdepends.keys()
 
             if fnid not in seen_fnids:
                 seen_fnids.append(fnid)
@@ -510,6 +509,9 @@  class BBCooker:
                         pn_rprovider = item
                     depend_tree["rdepends-pn"][pn].append(pn_rprovider)
 
+                depend_tree["rdepends-pkg"].update(rdepends)
+                depend_tree["rrecs-pkg"].update(rrecs)
+
         return depend_tree
 
     def generateDepTreeEvent(self, pkgs_to_build, task):