summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:58:59 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:58:59 +0000
commit18e20d63eddc69b049ccf3fb01c6393d3e147a9d (patch)
treeca3074d447cfe533b1fa37153ab86eeafd2f1d27 /cmdline
parent90f057fdded3af992d2937f2b7b9a6a97447d0f1 (diff)
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
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-get.cc5
1 files changed, 3 insertions, 2 deletions
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");