]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/clean.cc
demote VectorizeString gcc attribute from const to pure
[apt.git] / apt-pkg / clean.cc
index 0ee3b765d4ebf49c292b41c8f8b568e41b82c238..37128e9aa2c1de80782ad792e64d5630ebad226b 100644 (file)
 bool pkgArchiveCleaner::Go(std::string Dir,pkgCache &Cache)
 {
    bool CleanInstalled = _config->FindB("APT::Clean-Installed",true);
-      
+
+   if(Dir == "/")
+      return _error->Error(_("Clean of %s is not supported"), Dir.c_str());
+
    DIR *D = opendir(Dir.c_str());
    if (D == 0)
       return _error->Errno("opendir",_("Unable to read %s"),Dir.c_str());