swap update and exclude loops

This commit is contained in:
Louis Abel 2023-03-28 23:37:49 -07:00
parent 164d73e70d
commit 4b206f9e8f
Signed by: label
GPG Key ID: B37E62D143879B36

View File

@ -1265,16 +1265,16 @@ class IsoBuild:
for zm in sorted(result, key=self._sorting): for zm in sorted(result, key=self._sorting):
found = False found = False
replace = False replace = False
for excl in exclude:
#if fnmatch(zm, excl):
if excl in zm:
found = True
break
for upda in update: for upda in update:
#if fnmatch(zm, upda): #if fnmatch(zm, upda):
if upda in zm: if upda in zm:
replace = True replace = True
break break
for excl in exclude:
#if fnmatch(zm, excl):
if excl in zm:
found = True
break
if found: if found:
continue continue
mcmd = "-update" if replace else "-map" mcmd = "-update" if replace else "-map"