summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-05-16 11:22:45 +0200
committerRemi Collet <fedora@famillecollet.com>2014-05-16 11:22:45 +0200
commit7c88d4c6970bec76bb4b6d6b0f9baaf6ae59aee2 (patch)
treebebea4ed15f2dffb6fdd956e41b2f101d9b3d978
parent8ad1266d2ef409e50204410963666cd8506af59c (diff)
checkpkgist: always display release date
-rwxr-xr-xcheckpkgist.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/checkpkgist.php b/checkpkgist.php
index 4d39f1b..5b772b1 100755
--- a/checkpkgist.php
+++ b/checkpkgist.php
@@ -76,8 +76,8 @@ foreach ($pkgs as $name => $rpm) {
if (strpos($pkver, 'dev') !== false) {
continue;
}
+ $date = new DateTime($pkg['time']);
if (version_compare($pkver, $rpmver, 'gt')) {
- $date = new DateTime($pkg['time']);
$diff = $date->diff(new DateTime("now"));
if ($diff->days <2) {
$note = "(Just released)";
@@ -97,7 +97,7 @@ foreach ($pkgs as $name => $rpm) {
break;
}
else if (version_compare($pkver, $rpmver, 'eq') && $verb) {
- printf(" %-40s %15s %15s\n", $rpm, $rpmver, $pkver);
+ printf(" %-40s %15s %15s %15s\n", $rpm, $rpmver, $pkver, $date->format("Y-m-d"));
break;
}
}