Gentoo Archives: gentoo-user

From: Fast Turtle <fturtle@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Systray app notifying of updated packages?
Date: Thu, 06 Jun 2013 14:55:41
Message-Id: 20130606075420.c361034a67bd725bd3db7591@gmail.com
In Reply to: Re: [gentoo-user] Systray app notifying of updated packages? by Stroller
1 On Tue, 4 Jun 2013 07:27:55 +0100
2 Stroller <stroller@××××××××××××××××××.uk> wrote:
3
4 >
5 > On 3 June 2013, at 23:30, Walter Dnes wrote:
6 >
7 > > On Tue, Jun 04, 2013 at 12:02:27AM +0200, Sebastian Pipping wrote
8 > >
9 > >> Does anyone know an app sitting in the systray sending/popping
10 > >> notifications when installed packages can be updated?
11 > >
12 > > I'm not aware of any. That could be done under Gentoo, via scripting,
13 > > if someone is willing to put in the work. You would need a background
14 > > process running "emerge --sync" *AS ROOT* on a daily basis, possibly a
15 > > cron job. Then it would have to be followed by
16 > >
17 > > emerge -pv --deep --update --changed-use @world > updates.txt
18 >
19 > I think systray notifications are a bad idea, but I don't know that a daily cron job is the answer.
20 >
21 > Gentoo.org requests that one does not sync every 5 minutes. I think current policy might allow 4 times per day, but the only statement I can find on the website is from 2003, "Sync 1-2 times per day, maximum. … Analysis of rsync logs show that a few discourteous users syncing 10, 15 or even 25 times per day are using a disproportionate amount of rsync mirror resources."
22 >
23 > IMO systray notifications are to tell the user about stuff that's happening *right now* - incoming email or instant messages, tweets, buddies coming online, new comments on your blog or new uploads from your favourite YouTube channel.
24 >
25 > I think Portage might usefully use systray notifications to tell you that a package has finished installing (so please read the update notes and restart the web / mail server) or that package 11 of 20 has compiled, but I don't think systray notifications should be used for something that happens infrequently, say only once or twice a day.
26 >
27 > I don't really see the benefit of systray notifications (over a daily email), but if OP really wants that, I think it would be better to write a script that checks the RSS feed of http://packages.gentoo.org (which I think puts less strain on Gentoo infrastructure) and then parses the updates to see if the package is actually installed on the system, before notifying the user. This is probably a bit more work.
28 >
29 > Stroller.
30 >
31 >
32 In the case of the using the RSS feed, just use a blasted reader that check it and includes tray notifications or simply set a firefox live bookmark