]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/algorithms.cc
* merge from apt--mvo (fix resource leak, run apt.cron.daily only if
[apt.git] / apt-pkg / algorithms.cc
index f01ffa3df2059e6a8b7350db407fd240b58bb329..62727a852fd01504e7cd27820913b153449f6231 100644 (file)
@@ -14,9 +14,6 @@
    ##################################################################### */
                                                                        /*}}}*/
 // Include Files                                                       /*{{{*/
-#ifdef __GNUG__
-#pragma implementation "apt-pkg/algorithms.h"
-#endif 
 #include <apt-pkg/algorithms.h>
 #include <apt-pkg/error.h>
 #include <apt-pkg/configuration.h>
@@ -25,6 +22,7 @@
 
     
 #include <apti18n.h>
+#include <sys/types.h>
 #include <cstdlib>
 #include <algorithm>
 #include <iostream>
@@ -259,6 +257,8 @@ bool pkgApplyStatus(pkgDepCache &Cache)
            re-unpacked (probably) */
         case pkgCache::State::UnPacked:
         case pkgCache::State::HalfConfigured:
+        case pkgCache::State::TriggersAwaited:
+        case pkgCache::State::TriggersPending:
         if ((I->CurrentVer != 0 && I.CurrentVer().Downloadable() == true) ||
             I.State() != pkgCache::PkgIterator::NeedsUnpack)
            Cache.MarkKeep(I, false, false);