CI: skip all dot folders for now (!1068)
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.
This commit is contained in:
parent
83d1f27196
commit
796f2d097d
2 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue