X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/3f7604340855760289d7ed7e2dca70f99a9f4986..0a7370ca91289db3d23d72aeac397edfe3dfb75b:/apt-private/private-download.cc diff --git a/apt-private/private-download.cc b/apt-private/private-download.cc index 1ae0f4a0e..c85a49727 100644 --- a/apt-private/private-download.cc +++ b/apt-private/private-download.cc @@ -66,8 +66,7 @@ bool AuthPrompt(std::vector const &UntrustedList, bool const Prompt if (_config->FindI("quiet",0) < 2 && _config->FindB("APT::Get::Assume-Yes",false) == false) { - c2out << _("Install these packages without verification?") << std::flush; - if (!YnPrompt(false)) + if (!YnPrompt(_("Install these packages without verification?"), false)) return _error->Error(_("Some packages could not be authenticated")); return true; @@ -144,7 +143,7 @@ bool CheckFreeSpaceBeforeDownload(std::string const &Dir, unsigned long long Fet { struct statfs Stat; if (statfs(Dir.c_str(),&Stat) != 0 -#if HAVE_STRUCT_STATFS_F_TYPE +#ifdef HAVE_STRUCT_STATFS_F_TYPE || Stat.f_type != RAMFS_MAGIC #endif )