summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2012-04-16 23:55:21 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2012-04-16 23:55:21 +0200
commit872ed75fec87d7593997467809fcd17dcb88af0c (patch)
treed6bc6175b9c73cade87bf83153044198d09e1a2f
parent443f5e8a3205162ec6933529c5ca0c95ad3f6941 (diff)
* cmdline/apt-get.cc:
- if pkgCacheFile::Generate is disabled in 'update' don't remove the caches (and don't try to open them)
-rw-r--r--cmdline/apt-get.cc11
-rw-r--r--debian/changelog9
2 files changed, 16 insertions, 4 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
index 4e6cc32de..dd9313bff 100644
--- a/cmdline/apt-get.cc
+++ b/cmdline/apt-get.cc
@@ -1679,10 +1679,13 @@ bool DoUpdate(CommandLine &CmdL)
ListUpdate(Stat, *List);
// Rebuild the cache.
- pkgCacheFile::RemoveCaches();
- if (Cache.BuildCaches() == false)
- return false;
-
+ if (_config->FindB("pkgCacheFile::Generate", true) == true)
+ {
+ pkgCacheFile::RemoveCaches();
+ if (Cache.BuildCaches() == false)
+ return false;
+ }
+
return true;
}
/*}}}*/
diff --git a/debian/changelog b/debian/changelog
index 7cfa37e52..8e3e35064 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+apt (0.9.1) unstable; urgency=low
+
+ [ David Kalnischkies ]
+ * cmdline/apt-get.cc:
+ - if pkgCacheFile::Generate is disabled in 'update' don't
+ remove the caches (and don't try to open them)
+
+ -- David Kalnischkies <kalnischkies@gmail.com> Mon, 16 Apr 2012 22:56:31 +0200
+
apt (0.9.0) unstable; urgency=low
* upload to debian/unstable