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 untrusted user: label
GPG Key ID: B37E62D143879B36

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"