~ubuntu-branches/ubuntu/oneiric/apt/oneiric-proposed

« back to all changes in this revision

Viewing changes to apt-pkg/algorithms.h

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-01-30 14:05:20 UTC
  • mfrom: (1.4.36 sid)
  • Revision ID: package-import@ubuntu.com-20120130140520-u14zifmvpi2so08m
Tags: 0.8.16~exp5ubuntu13.1
* apt-pkg/algorithms.cc: Iterate Breaks the same way as Conflicts, so that
  we resolve virtual package Breaks more effectively (LP: #922485).
* apt-pkg/algorithms.{cc,h}: Use an int to represent resolver scores, not
  a signed short, because large upgrades can result in an overflow for
  core packages (LP: #917173).

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
   enum Flags {Protected = (1 << 0), PreInstalled = (1 << 1),
93
93
               Upgradable = (1 << 2), ReInstateTried = (1 << 3),
94
94
               ToRemove = (1 << 4)};
95
 
   signed short *Scores;
 
95
   int *Scores;
96
96
   unsigned char *Flags;
97
97
   bool Debug;
98
98