]> code.ossystems Code Review - openembedded-core.git/commit
apt-native: fix the creation of apt.conf.sample
authorHongxu Jia <hongxu.jia@windriver.com>
Thu, 10 Jan 2013 07:58:10 +0000 (15:58 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 10 Jan 2013 23:44:42 +0000 (23:44 +0000)
commit95a655a853b7cd43163362d72da0c134d4c0ec85
treef236587253b795f76421c181476f6cdea280548d
parentbcc5773199b46811f913d06e960d34ed9833f714
apt-native: fix the creation of apt.conf.sample

1.The file of "apt.conf.sample" is in the outdir, and outdir is assigned
by "os.path.join" with the params of ${D}, ${sysconfdir} and "apt". But
${sysconfdir} is an absolute dir and that let ${D} be discarded.

The following is the help on function os.path.join(a, *p):
     Join two or more pathname components, inserting '/' as needed.
     If any component is an absolute path, all previous path components
     will be discarded.
Use oe.path.join instead which don't have this problem.

2. Create apt.conf.sample if it doesn't exist.

[YOCTO #3677]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/apt/apt-native.inc