Gentoo Archives: gentoo-dev

From: Brian Dolbec <dolsen@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Proposal: New irc data field in layman's repositories.xml file format
Date: Tue, 13 Mar 2012 08:34:50
Message-Id: 1331627608.29064.88.camel@big_daddy.dol-sen.ca
In Reply to: Re: [gentoo-dev] Proposal: New irc data field in layman's repositories.xml file format by "Robin H. Johnson"
1 On Mon, 2012-03-12 at 08:49 +0000, Robin H. Johnson wrote:
2 > On Mon, Mar 12, 2012 at 08:52:20PM +1300, Kent Fredric wrote:
3 > > On 11 March 2012 22:09, Brian Dolbec <dolsen@g.o> wrote:
4 > > >
5 > > > eg:
6 > > >
7 > > > <irc>Channel #gentoo-guis on the freenode network</irc>
8 > > > or
9 > > > <irc>#gentoo-guis on the freenode IRC network, irc://irc.gentoo.org/gentoo-guis</irc>
10 > > >
11 > >
12 > > Though a freeform text field is probably better for humans, I'd
13 > > suggest having more explicit data available as an option, ie:
14 > >
15 > > <irc network="irc.freenode.org" channel="#gentoo-guis">Channel
16 > > #gentoo-guis on the freenode network</irc>
17 > +1 on this.
18 >
19
20 ... and just when I was beginning to think no one actually cared :) ...
21
22 The proper form of an irc url is in my example
23 "irc://irc.gentoo.org/gentoo-guis" and I took it from gentoo's irc
24 channel page at http://www.gentoo.org/main/en/irc.xml .
25
26 That would mean limiting a single <irc></irc> field to just valid url's
27 just like the <homepage></homepage> field.
28
29 <irc>irc://irc.gentoo.org/gentoo-guis</irc>
30
31 The other thing I find with your example is that layman no longer uses
32 that old style of xml. It still supports it, if you have that format
33 for some overlay definitions. But does not fit the current
34 repositories.xml format.
35
36 Personally I would find it quite simple to use a reg expression to
37 extract a valid irc url from a mixture of written text and url.
38 <irc>#gentoo-guis on the freenode IRC network, irc://irc.gentoo.org/gentoo-guis</irc>
39
40 So far there is not a gui for working with layman, so is all command
41 line, including the output of layman -i some-overlay. Don't get me
42 wrong, I have nothing aginst a layman gui. I actually ended up taking
43 over layman's development because of it's lack of a good api for other
44 apps to use. Namely porthole. Plus I fully intend to create a
45 standalone gui for layman.
46
47 Would it be better that I create 2 irc sub data types then?
48
49 <irc>
50 <description>#gentoo-guis on the freenode IRC network</description>
51 <url>irc://irc.gentoo.org/gentoo-guis</url>
52 </irc>
53
54 So far it seems many/most systems do not come setup to recognize and
55 take proper action for irc:// mime types like they do for http://
56
57 --
58 Brian Dolbec <dolsen@g.o>

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies