mirror of
https://git.yoctoproject.org/git/opkg-utils
synced 2026-03-20 08:41:30 +01:00
opkg-utils: Fix crash on dependency error
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> Acked-by: Brad Mouring <brad.mouring@ni.com> Cc: Alejandro del Castillo <alejandro.delcastillo@ni.com> Cc: Paul Barker <paul@paulbarker.me.uk> Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
This commit is contained in:
committed by
Alejandro del Castillo
parent
53274f0875
commit
e022fd082e
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user