All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alejandro del Castillo <alejandro.delcastillo@ni.com>
To: opkg-devel@googlegroups.com, yocto@yoctoproject.org
Subject: Re: [opkg-devel] [PATCH] opkg-utils: Fix crash on dependency error
Date: Tue, 29 Sep 2015 11:10:18 -0500	[thread overview]
Message-ID: <560AB7EA.4060200@ni.com> (raw)
In-Reply-To: <1432250850-25266-1-git-send-email-haris.okanovic@ni.com>

On 05/21/2015 06:27 PM, Haris Okanovic wrote:
> Fix crash on exception in opkg-show-deps when generating an
> 'unsatisfied dependency' error. process_dep() function was
> referencing a missing parameter `pkg`.
> 
> Signed-off-by: Haris Okanovic <haris.okanovic@ni.com>
> Reviewed-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
> Acked-by: Brad Mouring <brad.mouring@ni.com>
> Cc: Alejandro del Castillo <alejandro.delcastillo@ni.com>
> Cc: Paul Barker <paul@paulbarker.me.uk>
> ---
>  opkg-show-deps | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/opkg-show-deps b/opkg-show-deps
> index 3c3be6a..4694579 100755
> --- a/opkg-show-deps
> +++ b/opkg-show-deps
> @@ -58,7 +58,7 @@ def find_package(name):
>            return provider_hash[name]
>       return None
>  
> -def process_dep(dep):
> +def process_dep(pkg, dep):
>       # Add a provider of the given dependency to the list of required packages
>       # unless a provider is already present in this list.
>       dep = re.sub("\s*\(.*\)", "", dep)
> @@ -83,7 +83,7 @@ def recurse(pkg):
>       if pkg.depends:
>            deps = split_list(pkg.depends)
>            for dep in deps:
> -               process_dep(dep)
> +               process_dep(pkg, dep)
>  
>  for root in remaining_args:
>       pkgs = find_package(root)
> 

Pulled into master, apologies for the delay!

-- 
Cheers,

Alejandro


  reply	other threads:[~2015-09-29 16:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-21 23:27 [PATCH] opkg-utils: Fix crash on dependency error Haris Okanovic
2015-09-29 16:10 ` Alejandro del Castillo [this message]
2015-09-29 17:02   ` [opkg-devel] " Khem Raj

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=560AB7EA.4060200@ni.com \
    --to=alejandro.delcastillo@ni.com \
    --cc=opkg-devel@googlegroups.com \
    --cc=yocto@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.