ci: use more removed=False for get_changed_files
Most of the things don't really need it. Signed-off-by: Pablo Correa Gómez <pabloyoyoista@postmarketos.org> Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7868>
This commit is contained in:
@@ -173,7 +173,7 @@ if __name__ == "__main__":
|
||||
devices_under_test = set()
|
||||
packages_modified = set()
|
||||
# Get and print modified packages
|
||||
for file in common.get_changed_files():
|
||||
for file in common.get_changed_files(removed=False):
|
||||
path = Path(file)
|
||||
|
||||
# Check if the modified's file parent folder is one of a supported dev
|
||||
@@ -182,8 +182,6 @@ if __name__ == "__main__":
|
||||
|
||||
if path.name != "APKBUILD":
|
||||
continue
|
||||
elif not path.exists():
|
||||
continue # APKBUILD was deleted
|
||||
apkbuild = pmb.parse.apkbuild(path)
|
||||
packages_modified.add(apkbuild['pkgname'])
|
||||
archs.update(apkbuild["arch"])
|
||||
|
||||
+1
-1
@@ -72,7 +72,7 @@ def show_error_all():
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
if "kconfigcheck.toml" in common.get_changed_files():
|
||||
if "kconfigcheck.toml" in common.get_changed_files(removed=False):
|
||||
print("kconfigcheck.toml changed -> checking all kernels")
|
||||
if not check_kconfig_all():
|
||||
show_error_all()
|
||||
|
||||
Reference in New Issue
Block a user