summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-07-04 09:44:51 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-07-04 09:44:51 +0200
commita381270a2ec3d8a1d83a780db42ded01a80f59a2 (patch)
tree761d851b4b91ebcbc1051d2736d4c66fda7cd008
parente9afbeb9df95b582aac76bb44b5ae2b766ab8fd5 (diff)
parent9a9665f96e006602950e0e32ce80cb5ee14f5e5f (diff)
* apt-pkg/depcache.cc:
- if no /var/lib/apt/extended_states exists, create a empty one
-rw-r--r--apt-pkg/depcache.cc9
-rw-r--r--configure.in2
-rw-r--r--debian/changelog6
3 files changed, 16 insertions, 1 deletions
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 <michael.vogt@ubuntu.com> Tue, 4 Jul 2006 09:23:03 +0200
+
apt (0.6.44.2ubuntu1) edgy; urgency=low
* merged with debian/unstable