[Piuparts-devel] fix handling virtual packages

Andreas Beckmann debian at abeckmann.de
Fri Dec 2 10:03:17 UTC 2011


piuparts.git fix/handling-virtual-packages

has

Andreas Beckmann (6):
      correctly update unknown-preferred-alternative state
      add does-not-exist state
      rename state_by_name() to get_package_state()
      reindent
      use get_package_state() while computing states
      track virtual packages separately from binary packages


After the recent changes to piupartslib/packagesdb (using sets and
dropping unique) package count is too high because virtual packages are
treated as real packages. I'm now handling them separately and resolve
purely virtual packages to their first provider in get_package_state()

Only problem left is lazarus which has a circular dependency chain
involving 2 virtual alternatives, but now that just needs to be added to
the list of virtuals. (Package: foobar Depends: virtual1 | virtual2;
Package: realX Provides: virtualX and Depends: foobar)


Andreas

PS: I'll be offline over the weekend



More information about the Piuparts-devel mailing list