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:
parent
acf60d4136
commit
72c238cfe9
1 changed files with 1 additions and 1 deletions
|
|
@ -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'))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue