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
commit4efddddf5e0429a7f8fd2282ae92cc3f8c9111e1 (patch)
tree86fbaec46adad0bfd307d065af984b0c0addf22d
parentf9e3d0058ebaf131f85561f9a290b10da0853bbf (diff)
checkpkgist: always display release date
-rwxr-xr-xcheckpkgist/checkpkgist.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/checkpkgist/checkpkgist.php b/checkpkgist/checkpkgist.php
index 4d39f1b..5b772b1 100755
--- a/checkpkgist/checkpkgist.php
+++ b/checkpkgist/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;
}
}