Comment 5 for bug 1443895

Revision history for this message
Zygmunt Krynicki (zyga) wrote : Re: depmgr tries to remove an unavailable dependency from desired job list

Adding another breakpoint I see this:

=== modified file 'checkbox-ng/checkbox_ng/commands/newcli.py'
--- checkbox-ng/checkbox_ng/commands/newcli.py 2015-03-31 07:26:46 +0000
+++ checkbox-ng/checkbox_ng/commands/newcli.py 2015-04-14 14:14:02 +0000
@@ -78,6 +78,7 @@
     def __init__(self, provider_loader, config_loader, ns, launcher,
                  display=None):
         super().__init__(provider_loader, config_loader, ns, ns.color)
+ import pdb; pdb.set_trace()
         if display is None:
             display = get_display()
         self._launcher = launcher

> /home/zyga/checkbox.bzr/thunderbolt-testing/checkbox-ng/checkbox_ng/commands/newcli.py(82)__init__()
-> if display is None:
(Pdb) provider_loader
<bound method CheckboxLauncherTool._load_providers of <checkbox_ng.tools.CheckboxLauncherTool object at 0x7fa9bfc1aba8>>

Which leads me to tools.py which simply loads all providers by calling _load_providers().

So there are two bugs here:
 - depmgr should not crash in this case
 - plainbox should have better API than all_providers() (which loads all except for categories and manifest provider)

I'll patch each bug separately. I'll report them and link them here.