@@ -56,7 +56,7 @@ def update_added_from_license_info(delta, unique_categories):
5656 new_categories = set (license .category for license in new_licenses )
5757
5858 if delta .new_file .has_licenses ():
59- delta .update ( 20 , 'license info added' )
59+ delta .has_license = True
6060
6161 for category in new_categories :
6262 # no license ==> 'Copyleft Limited'or higher
@@ -75,7 +75,7 @@ def update_modified_from_license_info(delta, unique_categories):
7575 been a license change.
7676 """
7777 if not delta .new_file .has_licenses () and delta .old_file .has_licenses ():
78- delta .update ( 15 , 'license info removed' )
78+ delta .has_license = False
7979 return
8080
8181 new_licenses = delta .new_file .licenses or []
@@ -85,7 +85,7 @@ def update_modified_from_license_info(delta, unique_categories):
8585 old_categories = set (license .category for license in old_licenses )
8686
8787 if delta .new_file .has_licenses () and not delta .old_file .has_licenses ():
88- delta .update ( 20 , 'license info added' )
88+ delta .has_license = True
8989
9090 for category in new_categories :
9191 # no license ==> 'Copyleft Limited'or higher
@@ -134,7 +134,7 @@ def update_added_from_copyright_info(delta):
134134 been a copyright change.
135135 """
136136 if delta .new_file .has_copyrights ():
137- delta .update ( 10 , 'copyright info added' )
137+ delta .has_copyright = True
138138 return
139139
140140
@@ -148,10 +148,10 @@ def update_modified_from_copyright_info(delta):
148148 old_copyrights = delta .old_file .copyrights or []
149149
150150 if delta .new_file .has_copyrights () and not delta .old_file .has_copyrights ():
151- delta .update ( 10 , 'copyright info added' )
151+ delta .has_copyright = True
152152 return
153153 if not delta .new_file .has_copyrights () and delta .old_file .has_copyrights ():
154- delta .update ( 10 , 'copyright info removed' )
154+ delta .has_copyright = False
155155 return
156156
157157 new_holders = set (holder for copyright in new_copyrights for holder in copyright .holders )
0 commit comments