diff options
author | Michael Vogt <mvo@debian.org> | 2014-07-08 13:37:11 +0200 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2014-07-08 13:37:11 +0200 |
commit | 2830b8436ac8a6f2f3dac4ce2cd030c24eebce04 (patch) | |
tree | dcdaba1119e595edc8842c2e8746acdf25af6260 /apt-pkg/acquire.cc | |
parent | bcc352afa890788825dfbd1454847456748f511f (diff) | |
parent | 521dd27dc33c8b2a6947a76872841f4254df4e58 (diff) |
Merge branch 'debian/sid' into debian/experimental
Conflicts:
apt-pkg/deb/deblistparser.cc
doc/po/apt-doc.pot
doc/po/de.po
doc/po/es.po
doc/po/fr.po
doc/po/it.po
doc/po/ja.po
doc/po/pl.po
doc/po/pt.po
doc/po/pt_BR.po
po/da.po
po/mr.po
po/vi.po
Diffstat (limited to 'apt-pkg/acquire.cc')
-rw-r--r-- | apt-pkg/acquire.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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()); |