aboutsummaryrefslogtreecommitdiffstats
path: root/build/plugins/credits.py
diff options
context:
space:
mode:
authorheretic <heretic@yandex-team.ru>2022-02-10 16:45:46 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:46 +0300
commit81eddc8c0b55990194e112b02d127b87d54164a9 (patch)
tree9142afc54d335ea52910662635b898e79e192e49 /build/plugins/credits.py
parent397cbe258b9e064f49c4ca575279f02f39fef76e (diff)
downloadydb-81eddc8c0b55990194e112b02d127b87d54164a9.tar.gz
Restoring authorship annotation for <heretic@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'build/plugins/credits.py')
-rw-r--r--build/plugins/credits.py44
1 files changed, 22 insertions, 22 deletions
diff --git a/build/plugins/credits.py b/build/plugins/credits.py
index 0a100e87c6..0ce1659326 100644
--- a/build/plugins/credits.py
+++ b/build/plugins/credits.py
@@ -1,22 +1,22 @@
-from _common import rootrel_arc_src
-
-
-def oncredits_disclaimer(unit, *args):
- if unit.get('WITH_CREDITS'):
- unit.message(["warn", "CREDITS WARNING: {}".format(' '.join(args))])
-
-def oncheck_contrib_credits(unit, *args):
- module_path = rootrel_arc_src(unit.path(), unit)
- excepts = set()
- if 'EXCEPT' in args:
- args = list(args)
- except_pos = args.index('EXCEPT')
- excepts = set(args[except_pos + 1:])
- args = args[:except_pos]
- for arg in args:
- if module_path.startswith(arg) and not unit.get('CREDITS_TEXTS_FILE') and not unit.get('NO_CREDITS_TEXTS_FILE'):
- for ex in excepts:
- if module_path.startswith(ex):
- break
- else:
- unit.message(["error", "License texts not found. See https://st.yandex-team.ru/DTCC-324"])
+from _common import rootrel_arc_src
+
+
+def oncredits_disclaimer(unit, *args):
+ if unit.get('WITH_CREDITS'):
+ unit.message(["warn", "CREDITS WARNING: {}".format(' '.join(args))])
+
+def oncheck_contrib_credits(unit, *args):
+ module_path = rootrel_arc_src(unit.path(), unit)
+ excepts = set()
+ if 'EXCEPT' in args:
+ args = list(args)
+ except_pos = args.index('EXCEPT')
+ excepts = set(args[except_pos + 1:])
+ args = args[:except_pos]
+ for arg in args:
+ if module_path.startswith(arg) and not unit.get('CREDITS_TEXTS_FILE') and not unit.get('NO_CREDITS_TEXTS_FILE'):
+ for ex in excepts:
+ if module_path.startswith(ex):
+ break
+ else:
+ unit.message(["error", "License texts not found. See https://st.yandex-team.ru/DTCC-324"])