mirror of
https://github.com/openSUSE/osc.git
synced 2025-03-01 05:32:13 +01:00
Fix local service execution of scmsync packages
read _service file even when it is not tracked. This is the case in scmsync case. I am not aware of a situation where it would break, when the local _service file exists but is not tracked yet. osc#1350
This commit is contained in:
parent
17dbe25a71
commit
445c93300b
@ -2630,7 +2630,6 @@ rev: %s
|
||||
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'):
|
||||
try:
|
||||
service = ET.parse(os.path.join(self.absdir, '_service')).getroot()
|
||||
except ET.ParseError as v:
|
||||
|
Loading…
x
Reference in New Issue
Block a user