mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 18:06:13 +01:00
- fix crash on removal of local _service file
This commit is contained in:
parent
cdc21c6011
commit
da52ea1331
@ -2067,6 +2067,7 @@ rev: %s
|
|||||||
curdir = os.getcwd()
|
curdir = os.getcwd()
|
||||||
os.chdir(self.absdir) # e.g. /usr/lib/obs/service/verify_file fails if not inside the project dir.
|
os.chdir(self.absdir) # e.g. /usr/lib/obs/service/verify_file fails if not inside the project dir.
|
||||||
si = Serviceinfo()
|
si = Serviceinfo()
|
||||||
|
if os.path.exists('_service'):
|
||||||
if self.filenamelist.count('_service') or self.filenamelist_unvers.count('_service'):
|
if self.filenamelist.count('_service') or self.filenamelist_unvers.count('_service'):
|
||||||
service = ET.parse(os.path.join(self.absdir, '_service')).getroot()
|
service = ET.parse(os.path.join(self.absdir, '_service')).getroot()
|
||||||
si.read(service)
|
si.read(service)
|
||||||
|
Loading…
Reference in New Issue
Block a user