mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 01:46: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()
|
||||
os.chdir(self.absdir) # e.g. /usr/lib/obs/service/verify_file fails if not inside the project dir.
|
||||
si = Serviceinfo()
|
||||
if os.path.exists('_service'):
|
||||
if self.filenamelist.count('_service') or self.filenamelist_unvers.count('_service'):
|
||||
service = ET.parse(os.path.join(self.absdir, '_service')).getroot()
|
||||
si.read(service)
|
||||
|
Loading…
Reference in New Issue
Block a user