View previous topic :: View next topic |
Author |
Message |
Pythonhead Developer
Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
Posted: Tue Mar 22, 2005 7:51 pm Post subject: Check Freshmeat Releases Against Gentoo's Latest: meatoo? |
|
|
For the OCB crowd (Obsessive-Compulsive Bumpers):
EDIT The script has been re-written from scratch because Freshmeat stopped making their RDF file available.
Meatoo is an online database of the latest packages announced on Freshmeat that have corresponding Portage packages.
You can use it via the website: http://gentooexperimental.org/meatoo
or with a command-line tool:
http://dev.gentoo.org/~pythonhead/scripts/meatoo-0.0.6
Starting with version 0.0.4 the command-line client doesn't download anything from Freshmeat. It queries an XML-RPC server on gentooexperimental, where all the calculations are performed, making it much quicker.
Last edited by Pythonhead on Wed Jul 27, 2005 6:43 am; edited 4 times in total |
|
Back to top |
|
|
ciaranm Retired Dev
Joined: 19 Jul 2003 Posts: 1719 Location: In Hiding
|
Posted: Wed Mar 23, 2005 1:06 am Post subject: |
|
|
Heh. This is at least the fifth time someone's implemented this |
|
Back to top |
|
|
Pythonhead Developer
Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
Posted: Wed Mar 23, 2005 3:03 am Post subject: |
|
|
Whoops. Where are they?
I'm going to be embarassed if any are on my big list:
https://forums.gentoo.org/viewtopic-t-67849.html
Do any of them do stuff on my TODO? I just finished the auto-bumping and showing only stuff in your herds. |
|
Back to top |
|
|
ciaranm Retired Dev
Joined: 19 Jul 2003 Posts: 1719 Location: In Hiding
|
Posted: Wed Mar 23, 2005 3:15 am Post subject: |
|
|
Pythonhead wrote: | Whoops. Where are they? |
On various people's devspaces I guess. This is one of the projects that comes up about once a year where someone goes "wouldn't it be cool to check the entire tree against freshmeat for version bumps?", and then goes ahead and codes it before asking whether anyone else did it already. |
|
Back to top |
|
|
RedDawn Guru
Joined: 22 Sep 2003 Posts: 368 Location: Los Angeles, California
|
Posted: Wed Mar 23, 2005 7:08 am Post subject: |
|
|
"ide-scsi"
|
|
Back to top |
|
|
Pythonhead Developer
Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
Posted: Wed Mar 23, 2005 11:04 pm Post subject: |
|
|
0.0.2
EDIT The -i and -b features aren't implemented in 0.0.4 yet.
New features:
Optional command line arguments:
- -b Allow you to optionally "bump" up any versions listed.
- -i Only show packages you have installed
- -H Only show packages for the herds you're in (Gentoo developers only)
The -b option requires "bumper":
http://gentooexperimental.org/script/repo/show/2
The -H option uses app-portage/herdstat, which can take a very long time, especially if you're in a few herds.
To save time, use the -u option to cache all the packages for each herd in an sqlite database.
Source:
http://dev.gentoo.org/~pythonhead/scripts/meatoo-0.0.2
Optional sql backend for developers to cache herd/package info:
http://dev.gentoo.org/~pythonhead/scripts/meatoodb.py
It uses sqlite but you only need change one line to use mysql, postgres, firebird and others.
TODO:
- Add more herd info with patch submitted by ka0ttic (Thanks!)
- Use eix instead of equery for dramatic speed increase.
- Create website with daily rss feeds stored for meatoo to query
Last edited by Pythonhead on Thu May 26, 2005 11:43 pm; edited 1 time in total |
|
Back to top |
|
|
Pythonhead Developer
Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
|
Back to top |
|
|
Squiddle Tux's lil' helper
Joined: 27 Jan 2004 Posts: 141
|
Posted: Tue Mar 29, 2005 8:13 pm Post subject: |
|
|
too bad it is not working for me. Some output:
Code: | 5.4.4 Search/results:-:)
1.9.4 Search/results:-:)
0.7.1 Search/results:-:)
1.4-pre1 You/missed-:)
1.0.2 You/missed-:)
1.0.5 Search/results:-:)
0.0.2 You/missed-:)
2.2 You/missed-:)
0.9.3 You/missed-:)
0.7.4 You/missed-:)
1.4 You/missed-:)
0.97 Search/results:-:)
0.28 Search/results:-:)
2.4.5 You/missed-:)
0.13.5 Search/results:-:)
0.9.2pre3 You/missed-:)
2.0.1 Search/results:-:)
1.7.5-dev You/missed-:)
0.12.2 You/missed-:)
Packages found: 71 |
not really helpful seems eix is making fun of me _________________ "Unerhört schnelle Systeme begehen unerhört schnell Fehler." -- Stanislaw Lem |
|
Back to top |
|
|
Pythonhead Developer
Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
Posted: Tue Apr 05, 2005 3:10 am Post subject: |
|
|
What version of eix, Squiddle? I'm using 0.2.2 |
|
Back to top |
|
|
Squiddle Tux's lil' helper
Joined: 27 Jan 2004 Posts: 141
|
Posted: Tue Apr 05, 2005 4:30 pm Post subject: |
|
|
eix version 0.2.2_alpha
EDIT: eix 0.2.2 got stable now, and now meatoo is working like a charm, THX for stuff like this. _________________ "Unerhört schnelle Systeme begehen unerhört schnell Fehler." -- Stanislaw Lem |
|
Back to top |
|
|
deepHomer n00b
Joined: 06 Apr 2005 Posts: 6
|
Posted: Thu Apr 28, 2005 5:39 pm Post subject: |
|
|
Hi Pythonhead,
Just downloaded and ran meatoo.py (ver 0.0.3) but I get this:
Code: | Freshmeat: Portage:
2.1.0 Can't/open-reading
0.7.0 Can't/open-reading
0.7 Can't/open-reading
0.9.9 Can't/open-reading
1.29 Can't/open-reading
,,,
|
The same repeats for all 57 packages. I looked superficially through the script to try to find the problem, but to no avail.
What's wrong with my setup? |
|
Back to top |
|
|
blackcell n00b
Joined: 17 Aug 2002 Posts: 56 Location: Oregon
|
Posted: Tue May 10, 2005 3:24 am Post subject: |
|
|
deepHomer wrote: |
Hi Pythonhead,
Just downloaded and ran meatoo.py (ver 0.0.3) but I get this:
Code: | Freshmeat: Portage:
2.1.0 Can't/open-reading
0.7.0 Can't/open-reading
0.7 Can't/open-reading
0.9.9 Can't/open-reading
1.29 Can't/open-reading
,,,
|
The same repeats for all 57 packages. I looked superficially through the script to try to find the problem, but to no avail.
What's wrong with my setup? |
I get the same results. Script be broken?? |
|
Back to top |
|
|
Pythonhead Developer
Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
Posted: Tue May 24, 2005 9:37 pm Post subject: |
|
|
Freshmeat stopped making their xml file available on April 27th. Oops. I wasn't watching this thread.
I've written a new client that queries the meatoo website database and is very fast. I'll post it soon.
It uses xml-rpc, so you can use just about any language to make your own client. Heres a super-simple example in python:
Code: |
import xmlrpclib
server = xmlrpclib.ServerProxy("http://gentooexperimental.org:8888")
print server.getPackage("rhapsody")
print server.getMaintainer("games") |
The first line it prints is an exact package match and the second is all packages for the games herd.
Or in Ruby:
Code: |
require "xmlrpc/client"
server = XMLRPC::Client.new("gentooexperimental.org", "/RPC2", "8888")
print server.call("getPackage", "rhapsody")
print server.call("getMaintainer", "games")
|
|
|
Back to top |
|
|
Pythonhead Developer
Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
Posted: Thu May 26, 2005 11:46 pm Post subject: |
|
|
New version written from scratch:
http://dev.gentoo.org/~pythonhead/scripts/meatoo-0.0.4
It doesn't support -b yet (using bumper to bump a package version).
If you want to implement your own client using XML-RPC, look at the send_request function for a list of methods you can use. They all return a nested list of 10 strings (see constants PN, PV etc.) |
|
Back to top |
|
|
Pythonhead Developer
Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
|
Back to top |
|
|
|