From 18e20d63eddc69b049ccf3fb01c6393d3e147a9d Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:58:59 +0000 Subject: Do not check for free space if --no-dowload is set Author: jgg Date: 2002-03-27 05:26:24 GMT Do not check for free space if --no-dowload is set --- cmdline/apt-get.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cmdline') diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index a6355af31..e7ac0b65e 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: apt-get.cc,v 1.116 2002/03/26 07:38:58 jgg Exp $ +// $Id: apt-get.cc,v 1.117 2002/03/27 05:26:24 jgg Exp $ /* ###################################################################### apt-get - Cover for dpkg @@ -722,7 +722,8 @@ bool InstallPackages(CacheFile &Cache,bool ShwKept,bool Ask = true, /* Check for enough free space, but only if we are actually going to download */ - if (_config->FindB("APT::Get::Print-URIs") == false) + if (_config->FindB("APT::Get::Print-URIs") == false && + _config->FindB("APT::Get::Download",true) == true) { struct statvfs Buf; string OutputDir = _config->FindDir("Dir::Cache::Archives"); -- cgit v1.2.3