On Sun, Aug 8, 2010 at 1:16 PM, Tomas Forsman <tfors...@foresightlinux.se>wrote:
> Hello all, anyone know the status of: > http://www.rpath.org/web/project/foresight/ > > It doesnt work anymore, and tested UI with flash instead. And i have no > clue how to browse foresight repo or search for certian packages. Anyone > knows anything about this? > > I could use packagekit backend, but there is some tiny issues there too: > http://lists.rpath.org/pipermail/foresight-commits/2010-August/043160.html > Don't have packagekit installed, cant use pkcon search name **** > > So, any ideas, info or something that have any solution to find packages > on rpath would be great. > Need to search though. > > // Tomas Forsman > <http://www.rpath.org/web/project/foresight/> > > -- > Foresight Linux Developer http://www.foresightlinux.org > Foresight Linux - SE http://www.foresightlinux.se > Tomas Forsman - Blog http://www.foresightlinux.se/blog/ > > _______________________________________________ > Foresight-devel mailing list > Foresight-devel@lists.rpath.org > http://lists.rpath.org/mailman/listinfo/foresight-devel > I use the following script someone had posted before. It's returns results faster than web browsing. QQQ #!/usr/bin/python # rbo.py - rbuilder pkg search # # Copyright (c) 2009 Mark Trompell <m...@foresightlinux.org> # This file is distributed under the terms of the MIT License. # A copy is available at http://www.rpath.com/permanent/mit-license.html # # a very basic command line frontend to the rbo package search import os import string import sys import urllib2 from HTMLParser import HTMLParser class rboparser(HTMLParser): def handle_starttag(self, tag, attrs): if (tag == "td"): for att in attrs: if (att[1] == 'mainSearchItemDesc'): print (str(self.rawdata.split('\n')[self.getpos()[0]]).strip()) if (len(sys.argv) != 2): usage = "usage: "+ sys.argv[0] + " <search string>" print (usage) exit () searchstring = "http://www.rpath.org/search?type=Packages&search=" + sys.argv[1] + ";limit=100000" searchstring = searchstring.replace(' ','+') if os.getenv("HTTP_PROXY"): proxy_support = urllib2.ProxyHandler({"http" :os.getenv("HTTP_PROXY")}) opener = urllib2.build_opener(proxy_support, urllib2.HTTPHandler) urllib2.install_opener(opener) f = urllib2.urlopen(searchstring) rbo = rboparser() rbo.feed(f.read()) QQQ _______________________________________________ Foresight-devel mailing list Foresight-devel@lists.rpath.org http://lists.rpath.org/mailman/listinfo/foresight-devel