[Frugalware-darcs] homepage-ng: Packages RSS now sports filter feature for {current, stable} releases

CSECSY Laszlo boobaa at frugalware.org
Fri Jun 8 13:37:43 CEST 2007


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

[Packages RSS now sports filter feature for {current,stable} releases
CSECSY Laszlo <boobaa at frugalware.org>**20070608113558
   /rss/packages/current and /rss/packages/stable
   (everything is stable that's not current)
] {
hunk ./frugalware/rewrite.php 73
-		$urlsuffix="?type=".$params[0];
+		$urlsuffix="?type=".$params[0].(empty($params[1])?'':"&filter=".$params[1]);
hunk ./frugalware/rss.php 78
-			ct_groups.pkg_id and ct_groups.group_id = groups.id and
-			packages.uploader_id = uploaders.id group by
+			ct_groups.pkg_id and ct_groups.group_id = groups.id and'.
+			($_GET['filter'] == 'current' ? ' fwver = \'current\' and' : '').
+			($_GET['filter'] == 'stable' ? ' fwver != \'current\' and' : '').
+			' packages.uploader_id = uploaders.id group by
}


More information about the Frugalware-darcs mailing list