implement proper multi-arch dependency resolution

Review Request #121730 - Created Dec. 28, 2014 and updated

Information
Harald Sitter
libqapt
master
330446, 330449, 330450, 330451
121729
e5c54f8...
Reviewers
kubuntu, libqapt
apol, mstemle

implement proper multi-arch dependency resolution

using an exciting amount of spaghetti!

BUG: 330451
BUG: 330450
BUG: 330449
BUG: 330446

all test cases outlined in the bug reports

I am not sure existing functionality regressed, it's all a bit nasty and the lack of apt-mocing for autottesting doesn't help the cause :/

Issues

  • 3
  • 2
  • 0
  • 5
Description From Last Updated
Maybe it could go into a separate function? Aleix Pol Gonzalez Aleix Pol Gonzalez
Can you at least break this switch (or the whole loop) into a smaller separate function? Aleix Pol Gonzalez Aleix Pol Gonzalez
qWarning()? Aleix Pol Gonzalez Aleix Pol Gonzalez
Harald Sitter
Aleix Pol Gonzalez
Harald Sitter
Review request changed

Change Summary:

refine as per review

reduce debug to one line that is only used when we fail to resolve a dependency as this is handy information to easily get when a user has a dependency problem for no apparent reason.

Commit:

-408a75a994cc4e8acb889f287c0ee7aee1cfda62
+e5c54f84f3cf17f1141ce80d6dc1d9e72c74062e

Diff:

Revision 2 (+197 -33)

Show changes

Aleix Pol Gonzalez

The code is quite scary, I don't feel like I can give a +1 to that.

If you added some testing, I could add a sneaky ship it and then we blame it on the test if it doesn't work.

  1. Needs apt mocking implementation to simulate the scenarios.

Aleix Pol Gonzalez

   

Maybe it could go into a separate function?

Can you at least break this switch (or the whole loop) into a smaller separate function?

qWarning()?

Loading...