summaryrefslogtreecommitdiffstats
path: root/class/TableRpmRepo.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2010-11-01 08:46:05 +0100
committerRemi Collet <fedora@famillecollet.com>2010-11-01 08:46:05 +0100
commitc28b13eaeca04574994d5a7c2320bbce4c63450f (patch)
treebabb19b528e46b85bbbdc59a78313d422f5bcd5a /class/TableRpmRepo.php
parent1421a2207c0130030233e901d6f5055f54417e68 (diff)
add new TableRpmRepo->getMaxStamp() method and use it
Diffstat (limited to 'class/TableRpmRepo.php')
-rw-r--r--class/TableRpmRepo.php12
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