From 4a9cd1138228dd06eb280d232a4b450221866f98 Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Wed, 10 Oct 2012 11:11:21 +0000 Subject: show/list unmaintained packages & biggest maintainers --- maintainers.php | 135 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ unmaintained.php | 61 +++++++++++++++++++++++++ 2 files changed, 196 insertions(+) create mode 100644 maintainers.php create mode 100644 unmaintained.php diff --git a/maintainers.php b/maintainers.php new file mode 100644 index 0000000..77b43c5 --- /dev/null +++ b/maintainers.php @@ -0,0 +1,135 @@ + count($maintainers) - 1, + 'packages' => count($data), + 'unmaintained' => $maintainers['nobody'] +); + +foreach ($maintainers as $name => $count) { + if ($name == 'nobody') + continue; + + $pkgCount += $count; + $pkgr += 1; + if ($pkgCount > $stats['packages'] * 0.50) + break; +} + +$stats['half_maintainers'] = $pkgr; + +?> + + + + + + +

Mageia packaging facts

+ +
+
+ $count) { + $rows[] = sprintf("['%s', 'Global', %d]", $name, $count); +} +$rows = implode(",\n", $rows); +?> + + + + \ No newline at end of file diff --git a/unmaintained.php b/unmaintained.php new file mode 100644 index 0000000..2e7d73a --- /dev/null +++ b/unmaintained.php @@ -0,0 +1,61 @@ + 1) { + $groups[$p[0]][] = $package; + } else { + $groups[$package][] = $package; + } + } +} + +$s = count($groups) . ' groups for ' . count($data) . ' packages.'; +$s .= '