Control: tags -1 + pending
On Fri, Feb 10, 2012 at 08:57:04PM +0400, Askar Safin wrote:
> Reason:
> apt-pkg/deb/dpkgpm.cc:1139-1149 in apt source tree.
> At first apt chroots to /foo, then chdirs to "FindDir("DPkg:Run-Directory", "/")".
> But FindDir returns /foo/ instead of /. So, we chdir to real dir "/foo/foo" which doesn't exists!
This isn't a bug in the code, but in the documentation:
diff --git a/doc/apt.conf.5.xml b/doc/apt.conf.5.xml
index 103d062..6b5ebf2 100644
--- a/doc/apt.conf.5.xml
+++ b/doc/apt.conf.5.xml
@@ -690,7 +690,7 @@ DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";};
<para>
The configuration item <literal>RootDir</literal> has a special
- meaning. If set, all paths in <literal>Dir::</literal> will be
+ meaning. If set, all paths will be
relative to <literal>RootDir</literal>, <emphasis>even paths that
are specified absolutely</emphasis>. So, for instance, if
<literal>RootDir</literal> is set to
@@ -699,6 +699,7 @@ DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";};
<filename>/var/lib/dpkg/status</filename>, then the status file
will be looked up in
<filename>/tmp/staging/var/lib/dpkg/status</filename>.
+ If you want to prefix only relative paths, set <literal>Dir</literal> instead.
</para>
<para>
In other words: You probably want to set Dir, not RootDir.
Best regards
David Kalnischkies
Attachment:
signature.asc
Description: Digital signature