You are not logged in.

#1 2012-06-01 22:32:53

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

stupid question/email notification upon package update

Is this possible?  Currently if one enables the 'notify' button in the AUR, emails come when someone posts a comment, but not if the maintainer pushes an update.  Is it possible to get emails when the package is updated?

Offline

#2 2012-06-01 22:38:05

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,517
Website

Re: stupid question/email notification upon package update

A DIY method would be to parse the AUR RSS feed for any packages you currently have installed.  It could even just be a series of grep commands with some command to send the mail.

Some pseudo-code

geturl http://aur.archlinux.org/where/the/feed/is.rss > local.rss
[[ `grep "MyPackage1" local.rss` ]] && email-me "MyPackage1 has been updated"
[[ `grep "MyPackage2" local.rss` ]] && email-me "MyPackage2 has been updated"
...

Edit: nevermind, the AUR rss feed isnt actually an rss feed!  If there were and rss feed, this would work.

Last edited by Trilby (2012-06-01 22:41:18)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2012-06-02 06:01:19

ethail
Member
From: Spain
Registered: 2011-02-10
Posts: 225

Re: stupid question/email notification upon package update

https://aur.archlinux.org/rss.php

if that's not an rss feed, then what?

EDIT: but it seems only to be a feed of new packages >,<

Last edited by ethail (2012-06-02 06:18:10)


My GitHub Page

Best Testing Repo Warning: [testing] means it can eat you hamster, catch fire and you should keep it away from children. And I'm serious here, it's not an April 1st joke.

Offline

#4 2012-06-02 10:34:08

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,517
Website

Re: stupid question/email notification upon package update

??  And rss feed is xml.  When I click that I get a mash up of some text and links, none of which contain the names of those recent packages.  It starts

The latest and greatest packages in the AUR https://aur.archlinux.org Sat, 02 Jun 2012 10:32:21 +0100 FeedCreator 1.7.2   https://aur.archlinux.org/images/AUR-logo-80.png https://aur.archlinux.org AUR Newest Packages Feed https://aur.archlinux.org/packages.php?ID=59710 OpenVZ containters in a file user-space library and tools Lucky Sat, 02 Jun 2012 07:43:01 +0100 https://aur.archlinux.org/packages.php?ID=59709

This is rss: http://www.archlinux.org/feeds/news/


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2012-06-02 10:36:18

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: stupid question/email notification upon package update

That’s a good idea. Some packagers don’t post a comment when they update their packages…

(I don’t understand why you wrote “stupid” in this thread’s title.)

Offline

#6 2012-06-02 13:18:03

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: stupid question/email notification upon package update

stqn wrote:

That’s a good idea. Some packagers don’t post a comment when they update their packages…

(I don’t understand why you wrote “stupid” in this thread’s title.)


I used the word "stupid" for several reasons:

1) didn't know the answer to such an obvious question.
2) never thought to ask until now.
3) this should be a standard feature in the AUR and no one else asked!

https://bugs.archlinux.org/task/30109

Last edited by graysky (2012-06-02 13:22:57)

Offline

Board footer

Powered by FluxBB