From: Michael Vogt Date: Tue, 4 Jul 2006 07:44:51 +0000 (+0200) Subject: * apt-pkg/depcache.cc: X-Git-Tag: 0.7.24ubuntu1~253 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/a381270a2ec3d8a1d83a780db42ded01a80f59a2?hp=e9afbeb9df95b582aac76bb44b5ae2b766ab8fd5 * apt-pkg/depcache.cc: - if no /var/lib/apt/extended_states exists, create a empty one --- diff --git a/apt-pkg/depcache.cc b/apt-pkg/depcache.cc index 7663d3881..25a4372bf 100644 --- a/apt-pkg/depcache.cc +++ b/apt-pkg/depcache.cc @@ -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()); diff --git a/configure.in b/configure.in index e55c8cebe..531aeb6c0 100644 --- a/configure.in +++ b/configure.in @@ -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) diff --git a/debian/changelog b/debian/changelog index aa5087f32..e88ec1e37 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +apt (0.6.44.2ubuntu2) edgy; urgency=low + + * create a empty extended_states file if none exists already + + -- Michael Vogt Tue, 4 Jul 2006 09:23:03 +0200 + apt (0.6.44.2ubuntu1) edgy; urgency=low * merged with debian/unstable