- Also apply prod_dir and autorefresh

OBS-URL: https://build.opensuse.org/package/show/system:install:head/live-add-yast-repos?expand=0&rev=3
This commit is contained in:
Fabian Vogt 2018-08-02 08:29:50 +00:00 committed by Git OBS Bridge
parent 6a90a84b4b
commit 5c7a4dbc0f
3 changed files with 16 additions and 6 deletions

View File

@ -7,16 +7,21 @@
</xsl:text>
<xsl:for-each select="y:productDefines/y:software/y:extra_urls/y:extra_url">
<xsl:text>zypper addrepo --refresh </xsl:text>
<xsl:text>zypper addrepo</xsl:text>
<xsl:if test="y:enabled != 'true'">
<xsl:text>--disable </xsl:text>
<xsl:text> --disable</xsl:text>
</xsl:if>
<xsl:text>--name '</xsl:text>
<xsl:if test="y:autorefresh = 'true'">
<xsl:text> --refresh</xsl:text>
</xsl:if>
<xsl:text> -p </xsl:text><xsl:value-of select="y:priority"/>
<xsl:text> --name '</xsl:text>
<xsl:value-of select="y:name"/>
<xsl:text>' '</xsl:text>
<xsl:value-of select="y:baseurl"/>
<xsl:text>' </xsl:text><xsl:value-of select="y:alias"/>
<xsl:text>
<xsl:if test="y:prod_dir != '/'"><xsl:value-of select="y:prod_dir"/></xsl:if>
<xsl:text>' '</xsl:text><xsl:value-of select="y:alias"/>
<xsl:text>';
</xsl:text>
</xsl:for-each>
</xsl:template>

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Aug 2 08:18:32 UTC 2018 - fvogt@suse.com
- Also apply prod_dir and autorefresh
-------------------------------------------------------------------
Wed Mar 21 15:10:05 UTC 2018 - fvogt@suse.com

View File

@ -20,7 +20,7 @@ Name: live-add-yast-repos
Version: 1.0
Release: 0
Summary: A script to add the repos from control.xml to the system
License: GPL-2.0
License: GPL-2.0-only
Group: System/YaST
Url: https://build.opensuse.org/package/show/system:install:head/live-add-yast-repos
Source1: geturls.xsl