query: fix query.get_latest_tag() doccomment

It mentions that rc are excluded, but this is false with the new `rc`
boolean argument.

Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
This commit is contained in:
Théo Lebrun 2026-03-27 11:08:02 +01:00
parent acf60d4136
commit 72c238cfe9

View file

@ -184,7 +184,7 @@ class Query:
return self.get_idents_defs(version, ident, family) return self.get_idents_defs(version, ident, family)
# Returns the latest tag that is included in the database. # Returns the latest tag that is included in the database.
# This excludes release candidates. # This excludes release candidates if `rc` is False.
def get_latest_tag(self, rc): def get_latest_tag(self, rc):
if rc: if rc:
sorted_tags = reversed(self.scriptLines('list-tags')) sorted_tags = reversed(self.scriptLines('list-tags'))