Skip to content
Snippets Groups Projects
Commit 3e920fa8 authored by Minecrell's avatar Minecrell
Browse files

CI: skip all dot folders for now

At the moment we assume that all files except in /.* belong to
a package. Now that .shared-patches was moved to device/.shared-patches
that does not work correctly anymore.

This method should really check to which package the files belong
(e.g. walk up directories until it finds an APKBUILD) instead of
assuming they are directly in the same directory as the APKBUILD.

For now just ignore **/.* (i.e. all files in dot folders),
to unblock the MR since it's a critical fix.
parent acc894cb
No related branches found
No related tags found
No related merge requests found
Pipeline #191348 passed
......@@ -124,6 +124,7 @@ if __name__ == "__main__":
# Get and print modified packages
common.add_upstream_git_remote()
packages = common.get_changed_packages()
print(f"Changed packages: {packages}")
# Verify modified package count
common.get_changed_packages_sanity_check(len(packages))
......
......@@ -116,7 +116,8 @@ def get_changed_packages(with_directory=False):
# * in the root dir of pmaports (e.g. README.md)
# * path beginning with a dot (e.g. .gitlab-ci/)
# * non-existing files (deleted packages)
if "/" not in file or file.startswith(".") or not os.path.exists(file):
hidden = file.startswith(".") or "/." in file
if "/" not in file or hidden or not os.path.exists(file):
continue
# Add to the ret set (removes duplicated automatically)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment