Mercurial > projects > package-update-indicator
view docbook-update-source-data.xsl @ 6:2477a6151087
Make PackagKit use the user's network proxies
Pick up network proxies from the user's environment and make PackagKit use
them. Setting network proxies is a privileged operation, so it is only
attempted if the user is allowed to use the polkit action
org.freedesktop.packagekit.system-network-proxy-configure without
authentication.
author | Guido Berhoerster <guido+pui@berhoerster.name> |
---|---|
date | Tue, 19 Jun 2018 15:44:36 +0200 |
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>