1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-12 16:56:15 +01:00

- use "set_version" service by default on "osc add git://..."

This commit is contained in:
Adrian Schröter 2014-07-22 09:31:54 +02:00
parent 6a6e614661
commit 7649481167

View File

@ -335,6 +335,12 @@ class Serviceinfo:
r.append( s )
return r
def addSetVersion(self, serviceinfo_node):
r = serviceinfo_node
s = ET.Element( "service", name="set_version" )
r.append( s )
return r
def addGitUrl(self, serviceinfo_node, url_string):
r = serviceinfo_node
s = ET.Element( "service", name="tar_scm" )
@ -6394,6 +6400,7 @@ def addGitSource(url):
si = Serviceinfo()
s = si.addGitUrl(services, url)
s = si.addRecompressTar(services)
s = si.addSetVersion(services)
si.read(s)
# for pretty output