[Frugalware-darcs] homepage-ng: Packages RSS now has an arch filter, too

CSECSY Laszlo boobaa at frugalware.org
Fri Jun 8 13:52:41 CEST 2007


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=homepage-ng;a=darcs_commitdiff;h=20070608115123-60d9d-a09e1a353bfd2152eeb7163fce5942ce173ea218.gz;

[Packages RSS now has an arch filter, too
CSECSY Laszlo <boobaa at frugalware.org>**20070608115123
   first parameter is the fwver, second is the arch to filter on
] {
hunk ./frugalware/rewrite.php 73
-		$urlsuffix="?type=".$params[0].(empty($params[1])?'':"&filter=".$params[1]);
+		$urlsuffix="?type=".$params[0].(empty($params[1])?'':"&filter=".$params[1]).(empty($params[2])?'':"&arch=".$params[2]);
hunk ./frugalware/rss.php 81
+			($_GET['arch'] == 'i686' ? ' packages.arch = \'i686\' and' : '').
+			($_GET['arch'] == 'x86_64' ? ' packages.arch = \'x86_64\' and' : '').
}


More information about the Frugalware-darcs mailing list