Mercurial > projects > package-update-indicator
view docbook-update-source-data.xsl @ 46:8ed91c5e0116
Explicitly schedule the initial check for updates after a fixed short delay
Explicitly schedule the first check after startup to run after a short delay
defined in PUI_STARTUP_DELAY. This was always intended but not correctly
handled before, the first check could thus take up to the number of seconds
defined in PUI_CHECK_UPDATES_INTERVAL.
author | Guido Berhoerster <guido+pui@berhoerster.name> |
---|---|
date | Mon, 09 Nov 2020 15:06:04 +0100 |
parents | 6884bb8130ca |
children |
line wrap: on
line source
<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:db="http://docbook.org/ns/docbook" xmlns="http://docbook.org/ns/docbook" exclude-result-prefixes="xsl db"> <xsl:param name="package" select="''" /> <xsl:param name="version" select="''" /> <xsl:template match="db:refmeta/db:refmiscinfo[@class = 'source' or @class = 'version']"/> <xsl:template match="db:refmeta"> <xsl:copy> <xsl:apply-templates/> <refmiscinfo class="source"><xsl:value-of select="$package"/></refmiscinfo> <refmiscinfo class="version"><xsl:value-of select="$version"/></refmiscinfo> </xsl:copy> </xsl:template> <xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template> </xsl:stylesheet>