[Mageia-sysadm] [472] List broken dependencies instead of mdv packages now that none is left

root at mageia.org root at mageia.org
Mon Feb 7 12:05:24 CET 2011


Revision: 472
Author:   pterjan
Date:     2011-02-07 12:05:23 +0100 (Mon, 07 Feb 2011)
Log Message:
-----------
List broken dependencies instead of mdv packages now that none is left

Modified Paths:
--------------
    build_system/web/index.php

Modified: build_system/web/index.php
===================================================================
--- build_system/web/index.php	2011-02-07 10:32:15 UTC (rev 471)
+++ build_system/web/index.php	2011-02-07 11:05:23 UTC (rev 472)
@@ -117,9 +117,7 @@
 
 # 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 @@
 
 # Temporary until initial mirror is ready
 echo sprintf(
-    '<p><a href="%s">%d src.rpm</a> rebuilt for Mageia out of <a href="%s">%d</a> (%d%%)
-    (<a href="%s">list of %d Mandriva packages still present</a>). <strong><a href="%s">You can help!</a></strong>.</p>',
-
-    '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,
+    '<p><a href="%s">%d broken dependencies</a>. <strong><a href="%s">You can help!</a></strong></p>',
+    'data/missing-deps.i586.txt', count($missing_deps),
     'http://www.mageia.org/wiki/doku.php?id=packaging#starting_package_import'
 );
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20110207/3596233f/attachment.html>


More information about the Mageia-sysadm mailing list