From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.50) id 1Eaxtw-0001kw-Dw for garchives@archives.gentoo.org; Sat, 12 Nov 2005 16:06:48 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id jACG63r3020856; Sat, 12 Nov 2005 16:06:03 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id jACG4J5F014074 for ; Sat, 12 Nov 2005 16:04:19 GMT Received: from zh034158.ppp.dion.ne.jp ([222.3.34.158] helo=opteron246.suzuki-stubbs.home) by smtp.gentoo.org with esmtpa (Exim 4.43) id 1EaxrW-0000sq-Fv for gentoo-dev@lists.gentoo.org; Sat, 12 Nov 2005 16:04:18 +0000 Received: by opteron246.suzuki-stubbs.home (Postfix, from userid 1000) id 18A802482FC; Sun, 13 Nov 2005 01:05:49 +0900 (JST) From: Jason Stubbs To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Re: Re: GLEP 42 "Critical News Reporting" Round Two Date: Sun, 13 Nov 2005 01:05:48 +0900 User-Agent: KMail/1.8.92 References: <436CAC58.4090809@gentoo.org> <200511121339.05413.jstubbs@gentoo.org> <1131809671.8774.19.camel@vertigo.twi-31o2.org> In-Reply-To: <1131809671.8774.19.camel@vertigo.twi-31o2.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511130105.48799.jstubbs@gentoo.org> X-Archives-Salt: e9077491-863f-4296-9fad-3a373ec7b8be X-Archives-Hash: 00423a56eef18c2920788e8174cc61b8 On Sunday 13 November 2005 00:34, Chris Gianelloni wrote: > On Sat, 2005-11-12 at 13:39 +0900, Jason Stubbs wrote: > > On Saturday 12 November 2005 07:19, Stuart Herbert wrote: > > > When we have emerge --news done, > > > > I keep seeing references to "emerge --news" but at the same time am > > seeing that news readers are external. What exactly is `emerge --news` > > meant to do? Print out "You've got news!"? Manage some external database? > > It is my opinion that the news reading application need not be > integrated into portage. As far as I have understood it, the only real > thing that anyone has required portage itself to do is to > *automatically* spit out "You have $n unread news messages. Please use > $bleh to read them" at certain times (after sync, after --pretend, > before/after a merge). I don't see this as being something very > complex. I would assume that some extra code would need to be written > into the sync code somewhere to sort the messages. This, I get. What I'm wondering about is the `emerge --news` that is referred to every so often. > I wouldn't mind seeing something along the lines of /var/db/news > directory (or something repo specific, whatever) that has a pretty > simple format... > > yyyy-mm-dd-$blah-$lang.txt.unread > yyyy-mm-dd-$blah-$lang.txt.read > > When you delete a message, it is gone. This means an external news > reader (enews anyone?) that basically has the capability to read, skip, > or delete these news items. > > I think this would be pretty simple to get done and covers the problem > of messages being read or unread. Of course, this is all just an idea, > so feel free to blow holes all in it. ;] To be honest, this is the part that I don't like the most. Integrating code into portage to copy files here and there based on some predefined rules and news readers reading and renaming files based on some predefined rules... A filesystem based API just doesn't seem very robust to change. I'd prefer that either the post-sync handling code is not integrated into portage and portage just triggers some external script - or - portage exposes an API (via python and bash) for accessing and updating news items. I'd prefer the latter but I get the impression that most prefer the former. -- Jason Stubbs -- gentoo-dev@gentoo.org mailing list