diff options
-rw-r--r-- | apt-private/private-download.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/apt-private/private-download.cc b/apt-private/private-download.cc index 16d11255b..069bc6e67 100644 --- a/apt-private/private-download.cc +++ b/apt-private/private-download.cc @@ -126,7 +126,6 @@ bool AcquireRun(pkgAcquire &Fetcher, int const PulseInterval, bool * const Failu /*}}}*/ bool CheckFreeSpaceBeforeDownload(std::string const &Dir, unsigned long long FetchBytes)/*{{{*/ { - uint32_t const RAMFS_MAGIC = 0x858458f6; /* Check for enough free space, but only if we are actually going to download */ if (_config->FindB("APT::Get::Print-URIs", false) == true || @@ -147,12 +146,6 @@ bool CheckFreeSpaceBeforeDownload(std::string const &Dir, unsigned long long Fet unsigned long long const FreeBlocks = _config->Find("APT::Sandbox::User").empty() ? Buf.f_bfree : Buf.f_bavail; if (FreeBlocks < (FetchBytes / Buf.f_bsize)) { - struct statfs Stat; - if (statfs(Dir.c_str(),&Stat) != 0 -#ifdef HAVE_STRUCT_STATFS_F_TYPE - || Stat.f_type != RAMFS_MAGIC -#endif - ) return _error->Error(_("You don't have enough free space in %s."), Dir.c_str()); } |