Fixed a problem where the loop flag would be removed prematurely.
authorChristopher Baines <cbaines8@gmail.com>
Tue, 16 Aug 2011 17:00:01 +0000 (18:00 +0100)
committerChristopher Baines <cbaines8@gmail.com>
Tue, 16 Aug 2011 17:00:01 +0000 (18:00 +0100)
commitb57257d2993aaf8c0cf9d6f0ea8ebd0208112bc5
treeb98099dc7eee429f3ca3d257cbfe0ff4b5298821
parentd41d0e0113208aa1752344a13e8a962a1ad4f76e
Fixed a problem where the loop flag would be removed prematurely.

  SmartConfigure xserver-xorg-video-apm (1:1.2.3-0ubuntu1)
    SmartConfigure xserver-xorg-core (2:1.9.0-0ubuntu7.3) <- Loop flag set on xserver-xorg-core
      SmartConfigure xserver-xorg (1:7.5+6ubuntu3)
        SmartConfigure xserver-xorg-core (2:1.9.0-0ubuntu7.3) (Only Correct Dependancies) <- Loop flag removed prematurely
          SmartConfigure libpciaccess0 (0.12.0-1)
          SmartConfigure libpixman-1-0 (0.18.4-1)
        SmartConfigure xserver-xorg-video-all (1:7.5+6ubuntu3)
          SmartConfigure xserver-xorg-video-apm (1:1.2.3-0ubuntu1) (Only Correct Dependancies)
            SmartConfigure xserver-xorg-core (2:1.9.0-0ubuntu7.3) <- Incorrectly detects first run as no loop flag

Also applied this fix to the SmartUnpack method.
apt-pkg/packagemanager.cc