LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File geturls.xsl of Package kiwi-config-openSUSE (Project openSUSE:Factory:Live)

<?xml version='1.0' encoding='utf-8' ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:y="http://www.suse.com/1.0/yast2ns">
  <xsl:output method="text"/>
  <xsl:template match="/">
    <xsl:for-each select="y:productDefines/y:software/y:extra_urls/y:extra_url[y:enabled='true']">
      <xsl:text>zypper addrepo -f </xsl:text>
      <xsl:text> -n "</xsl:text><xsl:value-of select="y:name"/><xsl:text>"</xsl:text>
      <xsl:text> </xsl:text><xsl:value-of select="y:baseurl"/>
      <xsl:text> </xsl:text><xsl:value-of select="y:alias"/>
      <xsl:text>
</xsl:text>
    </xsl:for-each>
  </xsl:template>
</xsl:stylesheet>