summaryrefslogtreecommitdiff
path: root/cmdline/apt-get.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:54:04 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:54:04 +0000
commitc1e78ee5a2697afc0902d1be294d71de93090909 (patch)
treef2cc9270b427a4ce9afed950243fd55efd341032 /cmdline/apt-get.cc
parente301bbe940636295d844ba8ab278c10828a004fa (diff)
Various minor bug fixes
Author: jgg Date: 1999-06-24 04:06:30 GMT Various minor bug fixes
Diffstat (limited to 'cmdline/apt-get.cc')
-rw-r--r--cmdline/apt-get.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
index 69e986978..ca93dcd74 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.65 1999/06/13 05:06:40 jgg Exp $
+// $Id: apt-get.cc,v 1.66 1999/06/24 04:06:31 jgg Exp $
/* ######################################################################
apt-get - Cover for dpkg
@@ -1025,6 +1025,9 @@ class LogCleaner : public pkgArchiveCleaner
virtual void Erase(const char *File,string Pkg,string Ver,struct stat &St)
{
cout << "Del " << Pkg << " " << Ver << " [" << SizeToStr(St.st_size) << "B]" << endl;
+
+ if (_config->FindB("APT::Get::Simulate") == false)
+ unlink(File);
};
};