]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/clean.cc
fileutl_test.cc: Check for /etc/passwd instead of /bin/sh
[apt.git] / apt-pkg / clean.cc
index 6edce5b6db0edf3e57759dc3f8a20055ccac8c21..d05ae83b95d052ee4f37fb6a736df3f487a1ff02 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;
@@ -132,4 +132,5 @@ bool pkgArchiveCleaner::Go(std::string Dir,pkgCache &Cache)
 }
                                                                        /*}}}*/
 
+pkgArchiveCleaner::pkgArchiveCleaner() {}
 APT_CONST pkgArchiveCleaner::~pkgArchiveCleaner() {}