I've added a --regex option to repo-rss, analagous to the one in the repo-mail script I emailed here recently. Patch:
diff -Nur yum-utils-1.1.30.p1/docs/repo-rss.1 yum-utils-1.1.30/docs/repo-rss.1 --- yum-utils-1.1.30.p1/docs/repo-rss.1 2011-01-13 02:00:20.000000000 -0500 +++ yum-utils-1.1.30/docs/repo-rss.1 2013-08-16 14:53:43.951724000 -0400 @@ -22,6 +22,8 @@ Specify the description of the RSS feed. Default is "Most recent packages in Repositories". .IP "\fB\-r <days>\fP" Specify the number of days to consider most recent. Default is 3. +.IP "\fB\--regex <REGEX>\fP" +Regex that will be used to filter packages. .IP "\fB\-\-tempcache\fP" Enable the use of a temporary directory for the yum cache. This is enabled by default for non-root users. diff -Nur yum-utils-1.1.30.p1/repo-rss.py yum-utils-1.1.30/repo-rss.py --- yum-utils-1.1.30.p1/repo-rss.py 2013-08-13 21:16:35.839827000 -0400 +++ yum-utils-1.1.30/repo-rss.py 2013-08-16 14:59:23.353807000 -0400 @@ -25,6 +25,7 @@ import libxml2 import time from optparse import OptionParser +import re class YumQuiet(yum.YumBase): def __init__(self): @@ -224,6 +225,10 @@ recent = my.getRecent(days=days) recent.sort(key=lambda pkg: pkg.returnSimple('filetime')) recent.reverse() + + if options.regex: + recent = filter(lambda pkg: re.compile(options.regex).search(str(pkg)), recent) + if options.groups: comps = Comps() for repo in my.repos.listEnabled(): @@ -268,6 +273,9 @@ help='description of feed: %default') parser.add_option('-r', action='store', type='int', dest='days', default=3, help='most recent (in days): %default') + parser.add_option("--regex", action="store", type="string", + dest="regex", default='', + help="regex (perlre) to filter packages") parser.add_option("--tempcache", default=False, action="store_true", help="Use a temp dir for storing/accessing yum-cache") parser.add_option("-g", action='store_true', dest='groups', default=False, _______________________________________________ Yum-devel mailing list Yum-devel@lists.baseurl.org http://lists.baseurl.org/mailman/listinfo/yum-devel