Skip to content

Commit 8dabd05

Browse files
committed
Make synclic work.
* updates were not working Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent ef86a7a commit 8dabd05

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

etc/scripts/licenses/synclic.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,6 +1351,7 @@ def synchronize_licenses(
13511351

13521352
added_to_external = [externals_by_key[k] for k in added_to_external]
13531353
updated_in_external = [externals_by_key[k] for k in updated_in_external]
1354+
external_source.externals_by_key = externals_by_key
13541355
return added_to_external, updated_in_external
13551356

13561357

@@ -1439,9 +1440,6 @@ def cli(
14391440
api_url = external_source.api_base_url
14401441
api_key = external_source.api_key
14411442
for i, new_lic in enumerate(added_to_external):
1442-
if i == 2:
1443-
break
1444-
14451443
if new_lic.key in dejacode_special_skippable_keys:
14461444
continue
14471445
if TRACE:
@@ -1451,8 +1449,6 @@ def cli(
14511449
if update_external:
14521450
externals_by_key = external_source.externals_by_key
14531451
for i, modified_lic in enumerate(updated_in_external):
1454-
if i == 2:
1455-
break
14561452
if modified_lic.key in dejacode_special_skippable_keys:
14571453
continue
14581454
mold = license_to_dict(modified_lic)

0 commit comments

Comments
 (0)