From d08c07b68d0e88d863f597fe5e9ed72d84229ab7 Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Wed, 4 May 2011 13:26:54 +0000 Subject: initial import --- Report/Box/ignore_01_UpstreamProjects.php | 49 +++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Report/Box/ignore_01_UpstreamProjects.php (limited to 'Report/Box/ignore_01_UpstreamProjects.php') diff --git a/Report/Box/ignore_01_UpstreamProjects.php b/Report/Box/ignore_01_UpstreamProjects.php new file mode 100644 index 0000000..77f83cf --- /dev/null +++ b/Report/Box/ignore_01_UpstreamProjects.php @@ -0,0 +1,49 @@ + + * @license MIT License, see LICENSE.txt + * @link http://svnweb.mageia.org/svn/soft/dashboard/ +*/ + +/** +*/ +class Report_Box_UpstreamProjects extends Report_Box +{ + /** + */ + var $title = "Upstream Projects"; + + /** + */ + function _get_var_definitions() { + return array( + 'source-packages' => '%d source packages' + ); + } + + /** + */ + function _get_links() + { + return 'View detailed report (youri-check)'; + } + + /** + * Uses youri-check updates report. + */ + function _fetch_upstream_updates() + { + $txt = file('http://check.mageia.org/updates.txt'); + return array( + 'upstream-updates'=> count($txt) - 5 + ); + } +} -- cgit v1.2.1