From 13e6119556430054e04f51cf12d3ed48cfc7847d Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Mon, 7 Feb 2011 11:05:23 +0000 Subject: List broken dependencies instead of mdv packages now that none is left --- index.php | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/index.php b/index.php index a9e67d0..c4f0fff 100644 --- a/index.php +++ b/index.php @@ -117,9 +117,7 @@ $date_gen = date('c'); # Temporary until initial mirror is ready chdir("data"); -$nb_rpm = shell_exec('rpm -qp --qf "%{SOURCERPM}\n" /distrib/bootstrap/distrib/cauldron/i586/media/core/release/*.rpm | sort -u | tee src.txt | wc -l'); -$nb_rpm_mga = shell_exec('grep mga src.txt | tee src.mga.txt | wc -l'); -shell_exec('grep -v mga src.txt > src.mdv.txt'); +$missing_deps = file("missing-deps.i586.txt"); ######################################### chdir($upload_dir); @@ -275,14 +273,8 @@ if (!is_null($g_user)) # Temporary until initial mirror is ready echo sprintf( - '

%d src.rpm rebuilt for Mageia out of %d (%d%%) - (list of %d Mandriva packages still present). You can help!.

', - - 'data/src.mga.txt', $nb_rpm_mga, - 'data/src.txt', $nb_rpm, - $nb_rpm > 0 ? floor($nb_rpm_mga / $nb_rpm * 100) : 0, - 'data/src.mdv.txt', - $nb_rpm - $nb_rpm_mga, + '

%d broken dependencies. You can help!

', + 'data/missing-deps.i586.txt', count($missing_deps), 'http://www.mageia.org/wiki/doku.php?id=packaging#starting_package_import' ); -- cgit v1.2.1