From 3ede69cdf25b7827ab9ae49e5abc3c433bbd57ba Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 19 May 2014 13:39:14 +0200 Subject: checkpkgist: display name for progress --- checkpkgist.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'checkpkgist.php') diff --git a/checkpkgist.php b/checkpkgist.php index 3bde4e2..77c52b2 100755 --- a/checkpkgist.php +++ b/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"; -- cgit