You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
uses os.listdir, which is in the end depending on the inode order of the underlying fs. Therefore you could have different results on different hosts (or even on the same host at different points in time)
Either sort the list using sorted(os.listdir(...)) or find another alternative to make the function reproducible.
And I think this function needs some further treatment... here are my suggestions
remove the print call or replace it with bb.debug or bb.note
rework the whole block of
for filename in (f for f in os.listdir(dir)):
path = os.path.join(dir, filename)
print(path, filename)
if os.path.isfile(path) and filename.endswith(".patch"):
# TODO Escape evil characters ;-)
src_uri_patches.append("file://" + filename)
to
for filename in sorted(glob.glob(os.path.join(dir, "*.patch"))):
if os.os.path.isfile(filename):
src_uri_patches.append("file://%s" % os.path.relpath(d.getVar("WORKSPACE"), filename))
The text was updated successfully, but these errors were encountered:
meta-phytec/classes/patch-auto-append.bbclass
Line 25 in ea8941a
Either sort the list using
sorted(os.listdir(...))
or find another alternative to make the function reproducible.And I think this function needs some further treatment... here are my suggestions
to
The text was updated successfully, but these errors were encountered: