BUG: https://bugzilla.samba.org/show_bug.cgi?id=14780
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
dup = dup.difference(rely_on[t.sname])
if dup:
# Do not remove duplicates of BUILTINS
- d = next(iter(dup))
- if BUILTIN_LIBRARY(bld, d):
+ for d in iter(dup.copy()):
+ if BUILTIN_LIBRARY(bld, d):
+ debug('deps: BUILTIN_LIBRARY SKIP: removing dups from %s of type %s: %s also in %s %s',
+ t.sname, t.samba_type, d, t2.samba_type, l)
+ dup.remove(d)
+ if len(dup) == 0:
continue
debug('deps: removing dups from %s of type %s: %s also in %s %s',