Oct 052014
 

New categories in the FreeBSD ports tree do not come along often, but when they do, FreshPorts is ready to pull the details in and get the category name right.

def ProcessCategoryNew():
  syslog.syslog(syslog.LOG_NOTICE, 'We have a new category')

  urllib.urlretrieve("http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/www/en/ports/categories?rev=HEAD;content-type=text%2Fplain", '/usr/websites/freshports.org/dynamic/caching/tmp/categories');
  Touch(WWWENPortsCategoriesFlag)
  Touch(JOBWAITING)

No. It’s not.

That’s cvs. Won’t work.

It will redirect to https://svnweb.freebsd.org/ports/head/en/ports/categories and nothing of value will be retrieved.

Oops.

See also http://news.freshports.org/2007/10/12/new-categories/

Website Pin Facebook Twitter Myspace Friendfeed Technorati del.icio.us Digg Google StumbleUpon Premium Responsive