tags 433007 + patch thanks Here's a patch that should fix this bug. -- Ken (Chanoch) Bloom. PhD candidate. Linguistic Cognition Laboratory. Department of Computer Science. Illinois Institute of Technology. http://www.iit.edu/~kbloom1/
diff -uNr apt-0.7.16/apt-pkg/depcache.cc apt-0.7.16.new/apt-pkg/depcache.cc
--- apt-0.7.16/apt-pkg/depcache.cc 2008-06-09 16:11:56.000000000 -0500
+++ apt-0.7.16.new/apt-pkg/depcache.cc 2008-10-26 13:19:16.000000000 -0500
@@ -201,6 +201,8 @@
bool pkgDepCache::writeStateFile(OpProgress *prog, bool InstalledOnly)
{
+ if (_config->FindB("APT::Get::Simulate",false) == true)
+ return true;
if(_config->FindB("Debug::pkgAutoRemove",false))
std::clog << "pkgDepCache::writeStateFile()" << std::endl;
diff -uNr apt-0.7.16/debian/changelog apt-0.7.16.new/debian/changelog
--- apt-0.7.16/debian/changelog 2008-10-10 16:45:11.000000000 -0500
+++ apt-0.7.16.new/debian/changelog 2008-10-26 13:22:25.000000000 -0500
@@ -1,3 +1,10 @@
+apt (0.7.16+nmu1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Don't write StateFile when simulating (Closes: #433007)
+
+ -- Ken Bloom <kbloom@gmail.com> Sun, 26 Oct 2008 13:22:25 -0500
+
apt (0.7.16) unstable; urgency=low
[ Luca Bruno ]
Attachment:
signature.asc
Description: This is a digitally signed message part