]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire.cc
implement --full in apt search
[apt.git] / apt-pkg / acquire.cc
index a187a00ae9752fc900a2797302cf369780465816..057bc24cd35782bf61b64022fe9fcacd2e003d35 100644 (file)
@@ -486,6 +486,9 @@ bool pkgAcquire::Clean(string Dir)
    if (DirectoryExists(Dir) == false)
       return 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());