summaryrefslogtreecommitdiffstats
path: root/checkpkgist.php
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
commit3ede69cdf25b7827ab9ae49e5abc3c433bbd57ba (patch)
tree4eaf4d7f4c7a0643dc6fea035ac96d95a7689138 /checkpkgist.php
parentd56758583bae9ac825cfd6974916b9a50eab64af (diff)
checkpkgist: display name for progress
Diffstat (limited to 'checkpkgist.php')
-rwxr-xr-xcheckpkgist.php7
1 files changed, 6 insertions, 1 deletions
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";