HCoop
/
ntk
/
apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Do not clean "/" in pkgAcquire::Clean/pkgArchiveCleaner
[ntk/apt.git]
/
apt-pkg
/
acquire.cc
diff --git
a/apt-pkg/acquire.cc
b/apt-pkg/acquire.cc
index
a187a00
..
057bc24
100644
(file)
--- a/
apt-pkg/acquire.cc
+++ b/
apt-pkg/acquire.cc
@@
-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());