X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/acf09dfa0f6b654db3eae065ad73476d421ebfae..2830b8436ac8a6f2f3dac4ce2cd030c24eebce04:/apt-pkg/acquire.cc diff --git a/apt-pkg/acquire.cc b/apt-pkg/acquire.cc index 57cbba169..8467dab5b 100644 --- a/apt-pkg/acquire.cc +++ b/apt-pkg/acquire.cc @@ -487,6 +487,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());