summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-09-24 10:54:20 +0200
committerRemi Collet <fedora@famillecollet.com>2015-09-24 10:54:20 +0200
commit48adda3f55357037875819c3a720e143eea4b2c4 (patch)
tree81146fe09c088655ff4f7a3cc35e8ecd5622821b
parentee2f1e86bc29f3508f8dc771665b3547dea8a3f8 (diff)
checkpkgist: display all new version in verbose mode
-rwxr-xr-xcheckpkgist.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/checkpkgist.php b/checkpkgist.php
index fe16b40..48c3d11 100755
--- a/checkpkgist.php
+++ b/checkpkgist.php
@@ -122,9 +122,11 @@ function run($name, $rpm) {
($pkg['source']['reference']?:'unkown'));
}
$display = true;
- break;
+ if (!$verb) {
+ break;
+ }
}
- else if (version_compare($pkver, $rpmver, 'eq') && $verb) {
+ else if (version_compare($pkver, $rpmver, 'eq') && $verb && !$display) {
printf(" %-40s %15s %15s %15s\n", $rpm, $rpmver, $pkver, $date->format("Y-m-d"));
$display = true;
break;