1
0
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:
Adrian Schröter 2009-07-28 14:50:23 +00:00
parent 2900aecea4
commit 4df5334115

View File

@ -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,