Mercurial > projects > package-update-indicator
view docbook-update-source-data.xsl @ 64:a5ed1047ce14
Obtain network state from GNetworkMonitor
The PackageKit daemon does not necessarily run continuously and is therefore
not a reliable source for network changes. More specifically, if the internet
connectivity is not available when the PackageKit daemon shuts down,
package-update-indicator will not be notified if connectivity is restored.
Thus use GNetworkMonitor instead which is also used internally by PackageKit.
This change is based on patches by Cliff <cliffd@gmx.com.br> who discovered and
tracked down this issue.
author | Guido Berhoerster <guido+pui@berhoerster.name> |
---|---|
date | Sun, 14 Jan 2024 18:53:37 +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>