summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-05-19 13:39:14 +0200
committerRemi Collet <fedora@famillecollet.com>2014-05-19 13:39:14 +0200
commita46cf5ce45e53578559ebb16499738e58568f0e7 (patch)
tree7467310956561213984daebe541a19f51c2a189b
parent4c24570a32a183fc64a251d3c4e5d9144948b51d (diff)
checkpkgist: display name for progress
-rwxr-xr-xcheckpkgist/checkpkgist.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/checkpkgist/checkpkgist.php b/checkpkgist/checkpkgist.php
index 3bde4e2..77c52b2 100755
--- a/checkpkgist/checkpkgist.php
+++ b/checkpkgist/checkpkgist.php
@@ -103,6 +103,10 @@ if ($sort) {
printf(" %-40s %15s %15s %15s\n", "Name", "Version", "Upstream", "Date");
foreach ($pkgs as $name => $rpm) {
+ if (!$quiet) {
+ printf(" %-40s\r", $rpm);
+ }
+
$rpmver = exec("rpm -q --qf '%{VERSION}' $rpm", $out, $ret);
if ($ret) {
if ($quiet) {
@@ -159,4 +163,5 @@ foreach ($pkgs as $name => $rpm) {
} else {
printf(" %-40s %15s %15s\n", $rpm, $rpmver, 'Not found !');
}
-} \ No newline at end of file
+}
+echo str_repeat(' ', 50)."\n";