All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Wood <michael.g.wood@intel.com>
To: Dave Lerner <dave.lerner@windriver.com>,
	toaster@yoctoproject.org, belen.barros.pena@linux.intel.com
Subject: Re: [PATCH 1/1] toaster: fix banner after customimage package add
Date: Mon, 22 Feb 2016 16:57:12 +0000	[thread overview]
Message-ID: <56CB3DE8.8060608@intel.com> (raw)
In-Reply-To: <1455920587-25985-2-git-send-email-dave.lerner@windriver.com>

On 19/02/16 22:23, Dave Lerner wrote:
> Correct formatting of the banner message after adding a package to a
> custom image.  Also, correct the tracking of dependent packages for the
> added package, adding them to the set of packages appended to the
> base image rather than the set originally included the base image.
>
> [YOCTO #9101]
>
> Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
> ---
>   bitbake/lib/toaster/toastergui/static/js/customrecipe.js | 7 +++++--
>   bitbake/lib/toaster/toastergui/views.py                  | 2 +-
>   2 files changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/bitbake/lib/toaster/toastergui/static/js/customrecipe.js b/bitbake/lib/toaster/toastergui/static/js/customrecipe.js
> index a1fe486..3c57899 100644
> --- a/bitbake/lib/toaster/toastergui/static/js/customrecipe.js
> +++ b/bitbake/lib/toaster/toastergui/static/js/customrecipe.js
> @@ -127,7 +127,8 @@ function customRecipePageInit(ctx) {
>         if (targetPkg.hasOwnProperty('depsAdded') &&
>           targetPkg.depsAdded.length > 0) {
>   
> -        msg += "added " + (targetPkg.depsAdded.length + 1);
> +        msg += "added ";
> +        msg += "<strong>" + (targetPkg.depsAdded.length + 1) + "</strong>";
>           msg += " packages to " + ctx.recipe.name + ": ";
>           msg += "<strong>" + targetPkg.name + "</strong> and its dependencies";
>   
> @@ -150,7 +151,9 @@ function customRecipePageInit(ctx) {
>             (targetPkg.depsAdded.length + 1) + " packages added");
>   
>         } else {
> -        msg += ' <strong>' + targetPkg.name + '<strong>';
> +        msg += "added <strong>1</strong>";
> +        msg += " package to " + ctx.recipe.name + ": ";
> +        msg += "<strong>" + targetPkg.name + "</strong>";
>           inlineNotify.text("1 package added");
>         }

Belen tested the UI part and code looks fine to me.
>   
> diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py
> index dfa256e..83ba536 100755
> --- a/bitbake/lib/toaster/toastergui/views.py
> +++ b/bitbake/lib/toaster/toastergui/views.py
> @@ -2644,7 +2644,7 @@ if True:
>                           cust_package = CustomImagePackage.objects.get(
>                                              name=dep.depends_on.name)
>   
> -                        recipe.includes_set.add(cust_package)
> +                        recipe.appends_set.add(cust_package)

Packages included was the correct place for these to be added. This 
includes_set is a list of all the packages that have *not* been added by 
the user themselves, they get brought in when bitbake does the package 
level dependency resolution. bitbake is in control of dependency 
resolution, we aren't a package manager so we do a best guess based on 
previous build, this gets corrected automatically after rebuilding the 
recipe.



>                       except:
>                           logger.warning("Could not add package's suggested"
>                                          "dependencies to the list")

Thanks,

Michael


  parent reply	other threads:[~2016-02-22 16:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-19 22:23 [review-request] fix banner after customimage package add Dave Lerner
2016-02-19 22:23 ` [PATCH 1/1] toaster: " Dave Lerner
2016-02-22 14:29   ` Barros Pena, Belen
2016-02-22 16:57   ` Michael Wood [this message]
2016-02-22 21:42     ` Lerner, Dave

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56CB3DE8.8060608@intel.com \
    --to=michael.g.wood@intel.com \
    --cc=belen.barros.pena@linux.intel.com \
    --cc=dave.lerner@windriver.com \
    --cc=toaster@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.