1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-25 17:36:13 +01:00

fix service execution when _service file got not yet commited (but already added)

This commit is contained in:
Adrian Schröter 2011-01-07 14:41:00 +01:00
parent f8184165ed
commit 122679fb67

View File

@ -2014,7 +2014,7 @@ rev: %s
print 'At revision %s.' % self.rev
def run_source_services(self):
if self.filenamelist.count('_service'):
if self.filenamelist.count('_service') or self.filenamelist_unvers.count('_service'):
service = ET.parse(os.path.join(self.absdir, '_service')).getroot()
si = Serviceinfo()
si.read(service)