mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-13 01:06:15 +01:00
- use "set_version" service by default on "osc add git://..."
This commit is contained in:
parent
6a6e614661
commit
7649481167
@ -335,6 +335,12 @@ class Serviceinfo:
|
|||||||
r.append( s )
|
r.append( s )
|
||||||
return r
|
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):
|
def addGitUrl(self, serviceinfo_node, url_string):
|
||||||
r = serviceinfo_node
|
r = serviceinfo_node
|
||||||
s = ET.Element( "service", name="tar_scm" )
|
s = ET.Element( "service", name="tar_scm" )
|
||||||
@ -6394,6 +6400,7 @@ def addGitSource(url):
|
|||||||
si = Serviceinfo()
|
si = Serviceinfo()
|
||||||
s = si.addGitUrl(services, url)
|
s = si.addGitUrl(services, url)
|
||||||
s = si.addRecompressTar(services)
|
s = si.addRecompressTar(services)
|
||||||
|
s = si.addSetVersion(services)
|
||||||
si.read(s)
|
si.read(s)
|
||||||
|
|
||||||
# for pretty output
|
# for pretty output
|
||||||
|
Loading…
Reference in New Issue
Block a user