]> git.saurik.com Git - apt.git/commitdiff
* apt-pkg/depcache.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Tue, 4 Jul 2006 07:44:51 +0000 (09:44 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Tue, 4 Jul 2006 07:44:51 +0000 (09:44 +0200)
  - if no /var/lib/apt/extended_states exists, create a empty one

apt-pkg/depcache.cc
configure.in
debian/changelog

index 7663d38814b16de97ad0a2fa62deb34edd6cee24..25a4372bf86917362f70c6c70e36dccdbdfb28d0 100644 (file)
@@ -186,6 +186,15 @@ bool pkgDepCache::writeStateFile(OpProgress *prog)
 
    FileFd StateFile;
    string state = _config->FindDir("Dir::State") + "extended_states";
+
+   // if it does not exist, create a empty one
+   if(!FileExists(state)) 
+   {
+      StateFile.Open(state, FileFd::WriteEmpty);
+      StateFile.Close();
+   }
+
+   // open it
    if(!StateFile.Open(state, FileFd::ReadOnly))
       return _error->Error(_("Failed to open StateFile %s"),
                           state.c_str());
index e55c8cebef9c27effa0eeb4f42cb2f92eda8c04e..531aeb6c0fe5ea495e6f047f2982fc5c7dc9e6ab 100644 (file)
@@ -18,7 +18,7 @@ AC_CONFIG_AUX_DIR(buildlib)
 AC_CONFIG_HEADER(include/config.h:buildlib/config.h.in include/apti18n.h:buildlib/apti18n.h.in)
 
 dnl -- SET THIS TO THE RELEASE VERSION --
-AC_DEFINE_UNQUOTED(VERSION,"0.6.44.2ubuntu1")
+AC_DEFINE_UNQUOTED(VERSION,"0.6.44.2ubuntu2")
 PACKAGE="apt"
 AC_DEFINE_UNQUOTED(PACKAGE,"$PACKAGE")
 AC_SUBST(PACKAGE)
index aa5087f32714bad81c33a4711676056c7faefe33..e88ec1e375b447ebc24f6e879639f8efa708e8e3 100644 (file)
@@ -1,3 +1,9 @@
+apt (0.6.44.2ubuntu2) edgy; urgency=low
+
+  * create a empty extended_states file if none exists already
+
+ -- Michael Vogt <michael.vogt@ubuntu.com>  Tue,  4 Jul 2006 09:23:03 +0200
+
 apt (0.6.44.2ubuntu1) edgy; urgency=low
 
   * merged with debian/unstable