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
1 changed files with 5 additions and 5 deletions

View File

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