1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-15 00:36:11 +01:00

Merge pull request #1351 from adrianschroeter/service_scmsync

Fix local service execution of scmsync packages
This commit is contained in:
Daniel Mach 2023-07-10 12:11:33 +02:00 committed by GitHub
commit a461e16dec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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. 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 os.path.exists('_service'):
if self.filenamelist.count('_service') or self.filenamelist_unvers.count('_service'):
try: try:
service = ET.parse(os.path.join(self.absdir, '_service')).getroot() service = ET.parse(os.path.join(self.absdir, '_service')).getroot()
except ET.ParseError as v: except ET.ParseError as v: