mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-30 19:56:14 +01:00
fix set devel project, if no project or package is set
This commit is contained in:
parent
2900aecea4
commit
4df5334115
@ -3778,10 +3778,12 @@ def setDevelProject(apiurl, prj, pac, dprj, dpkg=None):
|
|||||||
if dprj:
|
if dprj:
|
||||||
elem.attrib['project'] = dprj
|
elem.attrib['project'] = dprj
|
||||||
else:
|
else:
|
||||||
|
if elem.attrib.has_key('project'):
|
||||||
del elem.attrib['project']
|
del elem.attrib['project']
|
||||||
if dpkg:
|
if dpkg:
|
||||||
elem.attrib['package'] = dpkg
|
elem.attrib['package'] = dpkg
|
||||||
else:
|
else:
|
||||||
|
if elem.attrib.has_key('package'):
|
||||||
del elem.attrib['package']
|
del elem.attrib['package']
|
||||||
edit_meta(metatype='pkg',
|
edit_meta(metatype='pkg',
|
||||||
path_args=path,
|
path_args=path,
|
||||||
|
Loading…
Reference in New Issue
Block a user