summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-05-09 18:36:23 +0000
committerMichael Scherer <misc@mageia.org>2011-05-09 18:36:23 +0000
commit5c895457b90951515f537a2237376b3becf02c16 (patch)
tree99ddc5a9d20924fe7c75687c25a76404403a5bd3 /index.php
parent752d8eccf0616fd8d38454674bbedc500a6ebce6 (diff)
downloadpkgsubmit-5c895457b90951515f537a2237376b3becf02c16.tar
pkgsubmit-5c895457b90951515f537a2237376b3becf02c16.tar.gz
pkgsubmit-5c895457b90951515f537a2237376b3becf02c16.tar.bz2
pkgsubmit-5c895457b90951515f537a2237376b3becf02c16.tar.xz
pkgsubmit-5c895457b90951515f537a2237376b3becf02c16.zip
nicer message when there is missing deps
Diffstat (limited to 'index.php')
-rw-r--r--index.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/index.php b/index.php
index 8ddf7c7..9c7dfab 100644
--- a/index.php
+++ b/index.php
@@ -7,6 +7,7 @@
* @author Olivier Blin
* @author Pascal Terjan
* @author Romain d'Alverny
+ * @author Michael Scherer
*
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU GPL v2
*
@@ -292,8 +293,8 @@ if (!is_null($g_user))
# Temporary until initial mirror is ready
echo sprintf(
- '<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),
+ '<p><a href="%s">%s broken dependencies</a>. <strong><a href="%s">You can help!</a></strong></p>',
+ 'data/missing-deps.i586.txt', count($missing_deps) == 0 ? 'no' : count($missing_deps),
'http://www.mageia.org/wiki/doku.php?id=packaging#starting_package_import'
);