Gentoo Archives: gentoo-portage-dev

From: "Robin H. Johnson" <robbat2@g.o>
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 02:33:19
Message-Id: robbat2-20100422T022547-327989507Z@orbis-terrarum.net
In Reply to: Re: [gentoo-portage-dev] layman: hard-coded fetching from gentoo.org and broken overlays when an 'add' is interrupted by Amit Dor-Shifer
1 On Thu, Apr 22, 2010 at 01:05:11AM +0300, Amit Dor-Shifer wrote:
2 > When I invoke the following, I see http interaction w/gentoo.org:
3 >
4 > layman -c /dev/null -N -f -a oversi -o file:///tmp/layman-oversi.xml
5 > which AFAIK doesn't read /etc/layman/layman.cfg.
6 The config file given (empty via /dev/null in this case) overrides the
7 options from self.defaults. Using '-c /dev/null' imports an EMPTY
8 config, and empty does NOT override anything, leaving you with the
9 defaults.
10
11 Do this instead:
12 # cat >/etc/layman/empty-overlays.xml <<EOF
13 <?xml version="1.0" encoding="UTF-8"?>
14 <!DOCTYPE repositories SYSTEM "/dtd/repositories.dtd">
15 <repositories xmlns="" version="1.0" />
16 EOF
17
18 Then set the 'overlays' key as:
19 overlays: file:///etc/layman/empty-overlays.xml
20
21 Or better yet, just put your OWN layman-oversi.xml reference into there
22 and distribute that file, and avoid the entire need for the -o argument.
23
24 --
25 Robin Hugh Johnson
26 Gentoo Linux: Developer, Trustee & Infrastructure Lead
27 E-Mail : robbat2@g.o
28 GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85

Replies