]> git.saurik.com Git - apt.git/commitdiff
* apt-pkg/deb/debsystem.cc:
authorDavid Kalnischkies <kalnischkies@gmail.com>
Fri, 28 May 2010 12:10:00 +0000 (14:10 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Fri, 28 May 2010 12:10:00 +0000 (14:10 +0200)
  - add better config item for extended_states file

apt-pkg/deb/debsystem.cc
apt-pkg/depcache.cc
debian/changelog
doc/apt-mark.8.xml
doc/apt.ent
doc/examples/configure-index

index 59f826d96ea2bdd722500798ee48d98d82f07bfa..31c26ab2fee62f1bc1db4e246cc6aa878a29a2e1 100644 (file)
@@ -158,7 +158,7 @@ bool debSystem::Initialize(Configuration &Cnf)
    /* These really should be jammed into a generic 'Local Database' engine
       which is yet to be determined. The functions in pkgcachegen should
       be the only users of these */
-   Cnf.CndSet("Dir::State::userstatus","status.user"); // Defunct
+   Cnf.CndSet("Dir::State::extended_states", Cnf.FindDir("Dir::State").append("extended_states"));
    Cnf.CndSet("Dir::State::status","/var/lib/dpkg/status");
    Cnf.CndSet("Dir::Bin::dpkg","/usr/bin/dpkg");
 
index 411ae5f6253aa02e766cadb5c583ae5c01b87bd9..bdb89b5ce19c41fe834eaf2301a128f599945042 100644 (file)
@@ -165,7 +165,7 @@ bool pkgDepCache::Init(OpProgress *Prog)
 bool pkgDepCache::readStateFile(OpProgress *Prog)                      /*{{{*/
 {
    FileFd state_file;
-   string const state = _config->FindDir("Dir::State") + "extended_states";
+   string const state = _config->FindFile("Dir::State::extended_states");
    if(FileExists(state)) {
       state_file.Open(state, FileFd::ReadOnly);
       int const file_size = state_file.Size();
@@ -222,7 +222,7 @@ bool pkgDepCache::writeStateFile(OpProgress *prog, bool InstalledOnly)      /*{{{*/
       std::clog << "pkgDepCache::writeStateFile()" << std::endl;
 
    FileFd StateFile;
-   string const state = _config->FindDir("Dir::State") + "extended_states";
+   string const state = _config->FindFile("Dir::State::extended_states");
 
    // if it does not exist, create a empty one
    if(!FileExists(state)) 
index 9fa04058d8aab5d87e40b86a93528b98037764b3..028452751eaf550bf295a8bd0b7eaf730c60c38f 100644 (file)
@@ -4,6 +4,8 @@ apt (0.7.26~exp6) UNRELEASED; urgency=low
   * apt-pkg/deb/dpkgpm.cc:
     - write Disappeared also to the history.log
     - forward manual-installed bit on package disappearance
+  * apt-pkg/deb/debsystem.cc:
+    - add better config item for extended_states file
 
  -- David Kalnischkies <kalnischkies@gmail.com>  Thu, 27 May 2010 17:34:51 +0200
 
index 3f6cc78f55e4607688bb5ae116b5fde7627b9729..8e07cd7d9d02938e014faeee82f16e7da91dc870 100644 (file)
 
  <refsect1><title>Files</title>
    <variablelist>
-      <varlistentry><term><filename>/var/lib/apt/extended_states</filename></term>
-      <listitem><para>Status list of auto-installed packages.
-                     Configuration Item: <literal>Dir::State</literal>
-                     sets the path to the <filename>extended_states</filename> file.
-      </para></listitem>
-      </varlistentry>
+       &file-extended_states;
    </variablelist>
  </refsect1>
 
index 494c6b02cb4be487a20b17bf80ca1cd365602aef..0d037c8bbfbd76ae76c62ad702869a15c08678fd 100644 (file)
      </varlistentry>
 ">
 
+<!ENTITY file-extended_states "
+      <varlistentry><term><filename>/var/lib/apt/extended_states</filename></term>
+      <listitem><para>Status list of auto-installed packages.
+      Configuration Item: <literal>Dir::State::extended_states</literal>.
+      </para></listitem>
+      </varlistentry>
+">
+
 <!-- TRANSLATOR: This is the section header for the following paragraphs - comparable
      to the other headers like NAME and DESCRIPTION and should therefore be uppercase. -->
 <!ENTITY translation-title "TRANSLATION">
index d168417d89c8a7c5faa3357a86a59097597596ae..487c09acb85217cb58fcc9a46a9fd53cf41398c7 100644 (file)
@@ -294,9 +294,8 @@ Dir "/"
   State "var/lib/apt/" 
   {
      Lists "lists/";
-     xstatus "xstatus";
-     userstatus "status.user";
      status "/var/lib/dpkg/status";
+     extended_states "extended_states";
      cdroms "cdroms.list";
   };