diff options
Diffstat (limited to 'class/TableRpmRepo.php')
-rw-r--r-- | class/TableRpmRepo.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/class/TableRpmRepo.php b/class/TableRpmRepo.php index a8ae44f..3144abe 100644 --- a/class/TableRpmRepo.php +++ b/class/TableRpmRepo.php @@ -108,6 +108,18 @@ class TableRpmRepo extends CommonTable } return $res; } + + /** + * Retrieve the greater update date + */ + function getMaxStamp() { + + $sql='SELECT MAX(stamp) AS stamp FROM '.$this->table; + foreach ($this->request($sql) as $res) { + return $res['stamp']; + } + return 0; + } } ?>
\ No newline at end of file |