All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] opkg-utils: Fix crash on dependency error
@ 2015-05-21 23:27 Haris Okanovic
  2015-09-29 16:10 ` [opkg-devel] " Alejandro del Castillo
  0 siblings, 1 reply; 3+ messages in thread
From: Haris Okanovic @ 2015-05-21 23:27 UTC (permalink / raw)
  To: yocto, opkg-devel

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)
-- 
2.2.2



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

end of thread, other threads:[~2015-09-29 17:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-21 23:27 [PATCH] opkg-utils: Fix crash on dependency error Haris Okanovic
2015-09-29 16:10 ` [opkg-devel] " Alejandro del Castillo
2015-09-29 17:02   ` Khem Raj

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.