]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/clean.cc
add volatile sources support in libapt-pkg
[apt.git] / apt-pkg / clean.cc
index 37128e9aa2c1de80782ad792e64d5630ebad226b..ebe8a8a530569ad5df7f80d49e5754bac23c41dd 100644 (file)
@@ -106,7 +106,7 @@ bool pkgArchiveCleaner::Go(std::string Dir,pkgCache &Cache)
                 J.end() == false; ++J)
            {
               if (CleanInstalled == true &&
-                  (J.File()->Flags & pkgCache::Flag::NotSource) != 0)
+                  J.File().Flagged(pkgCache::Flag::NotSource))
                  continue;
               IsFetchable = true;
               break;
@@ -131,3 +131,6 @@ bool pkgArchiveCleaner::Go(std::string Dir,pkgCache &Cache)
    return true;
 }
                                                                        /*}}}*/
+
+pkgArchiveCleaner::pkgArchiveCleaner() : d(NULL) {}
+APT_CONST pkgArchiveCleaner::~pkgArchiveCleaner() {}