@@ -251,6 +251,7 @@ bool pkgDepCache::writeStateFile(OpProgress *prog)
fprintf(OutFile,"\n");
}
+ fclose(OutFile);
// move the outfile over the real file
rename(outfile.c_str(), state.c_str());
@@ -1,3 +1,9 @@
+apt (0.6.44.2ubuntu3) edgy; urgency=low
+
+ * Close extended_states file after writing it.
+ -- Colin Watson <cjwatson@ubuntu.com> Tue, 18 Jul 2006 00:12:13 +0100
apt (0.6.44.2ubuntu2) edgy; urgency=low
* create a empty extended_states file if none exists already