Gentoo Archives: gentoo-portage-dev

From: Amit Dor-Shifer <amitds@××××××.com>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] layman: hard-coded fetching from gentoo.org and broken overlays when an 'add' is interrupted
Date: Thu, 22 Apr 2010 07:06:57
Message-Id: 4BCFF566.7020706@oversi.com
In Reply to: Re: [gentoo-portage-dev] layman: hard-coded fetching from gentoo.org and broken overlays when an 'add' is interrupted by "Robin H. Johnson"
1 Robin H. Johnson wrote:
2 > On Thu, Apr 22, 2010 at 01:05:11AM +0300, Amit Dor-Shifer wrote:
3 >
4 >> When I invoke the following, I see http interaction w/gentoo.org:
5 >>
6 >> layman -c /dev/null -N -f -a oversi -o file:///tmp/layman-oversi.xml
7 >> which AFAIK doesn't read /etc/layman/layman.cfg.
8 >>
9 > The config file given (empty via /dev/null in this case) overrides the
10 > options from self.defaults. Using '-c /dev/null' imports an EMPTY
11 > config, and empty does NOT override anything, leaving you with the
12 > defaults.
13 >
14 > Do this instead:
15 > # cat >/etc/layman/empty-overlays.xml <<EOF
16 > <?xml version="1.0" encoding="UTF-8"?>
17 > <!DOCTYPE repositories SYSTEM "/dtd/repositories.dtd">
18 > <repositories xmlns="" version="1.0" />
19 > EOF
20 >
21 > Then set the 'overlays' key as:
22 > overlays: file:///etc/layman/empty-overlays.xml
23 >
24 > Or better yet, just put your OWN layman-oversi.xml reference into there
25 > and distribute that file, and avoid the entire need for the -o argument.
26 >
27 >
28 ok. Thanks. I'll try generating a layman.cfg on the fly, read it w/(-c)
29 and reference my overlay index from there. I want to ignore
30 /etc/layman/layman.cfg
31
32 Any advice regarding the second issue?
33
34 Amit