From 0920848bcc35d450072afa20647599a6e8cb32b9 Mon Sep 17 00:00:00 2001 From: gifrerenom <lluis.gifre@cttc.es> Date: Mon, 4 Nov 2024 18:41:07 +0000 Subject: [PATCH] Updated scripts to update license headers --- scripts/update_license_headers.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/update_license_headers.py b/scripts/update_license_headers.py index 5d5d38538..3332a13d2 100644 --- a/scripts/update_license_headers.py +++ b/scripts/update_license_headers.py @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2022-2024 ETSI TeraFlowSDN - TFS OSG/SDG (https://tfs.etsi.org/) +# Copyright 2022-2024 ETSI SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -34,6 +34,7 @@ RE_OLD_COPYRIGHTS = [ r'Copyright\ 2022\-2023\ ETSI\ TeraFlowSDN\ \-\ TFS\ OSG\ \(https\:\/\/tfs\.etsi\.org\/\)', r'Copyright\ 2022\-2024\ ETSI\ TeraFlowSDN\ \-\ TFS\ OSG\ \(https\:\/\/tfs\.etsi\.org\/\)', r'Copyright\ 2022\-2024\ ETSI\ TeraFlowSDN\ \-\ TFS\ OSG\/SDG\ \(https\:\/\/tfs\.etsi\.org\/\)', + r'Copyright\ 2022\-2024\ ETSI\ OSG\/SDG\ TeraFlowSDN\ \(TFS\)\ \(https\:\/\/tfs\.etsi\.org\/\)', ] RE_OLD_COPYRIGHTS = [ (re.compile(r'.*{}.*'.format(re_old_copyright)), re.compile(re_old_copyright)) @@ -52,6 +53,7 @@ def skip_file(file_path : str) -> bool: if file_path.endswith('.csv'): return True if file_path.endswith('.zip'): return True if file_path.endswith('.zip'): return True + if file_path.endswith('.tgz'): return True if file_path.endswith('.jar'): return True if file_path.endswith('.onnx'): return True if file_path.endswith('/tstat'): return True @@ -91,8 +93,8 @@ def skip_file(file_path : str) -> bool: if '/nbi/service/rest_server/nbi_plugins/ietf_network/yang/' in file_path: return True if '/ztp/target/' in file_path: return True if '/policy/target/' in file_path: return True - if '/dlt/gateway/Dockerfile' in file_path: return False - if '/dlt/gateway/' in file_path: return True + if '/dlt/gateway/_legacy' in file_path: return True + if '/proto/src/python/asyncio/' in file_path: return True if FILE_PATH_SKIPPED in file_path: return True if FILE_PATH_NO_HEADER in file_path: return True if FILE_PATH_UPDATED in file_path: return True -- GitLab