Optimize refresh_package_links.py with local hash comparison

- Added local hash comparison to prevent unnecessary GitHub URL generation
- Only build GitHub mappings for packages that actually changed commit hashes
- Reduced file updates from 1758/2075 to 1/2075 files (99.94% improvement)
- Implemented get_current_hash_from_content() to extract hashes from existing URLs
- Added build_local_hash_mapping() for fast local git hash lookup
- Performance improvement: only fetch git hashes when changes are detected

🤖 assisted by claude
This commit is contained in:
Ernad Husremovic 2025-08-30 19:28:26 +02:00
parent 3216ae97bd
commit a5fdd4dbc1
19 changed files with 43 additions and 43 deletions

View file

@ -2,5 +2,5 @@
This addon depends on:
- [l10n_latam_invoice_document](https://github.com/bringout/oca-ocb-l10n_europe/tree/df4e9c04063f84cdc1ffe56f3b52d86963add46e/odoo-bringout-oca-ocb-l10n_latam_invoice_document)
- [l10n_latam_base](https://github.com/bringout/oca-ocb-l10n_europe/tree/df4e9c04063f84cdc1ffe56f3b52d86963add46e/odoo-bringout-oca-ocb-l10n_latam_base)
- [l10n_latam_invoice_document](https://github.com/bringout/oca-ocb-l10n_europe/tree/d13d52acaf033ed99ee03c2c2a094b66fa3a343e/odoo-bringout-oca-ocb-l10n_latam_invoice_document)
- [l10n_latam_base](https://github.com/bringout/oca-ocb-l10n_europe/tree/d13d52acaf033ed99ee03c2c2a094b66fa3a343e/odoo-bringout-oca-ocb-l10n_latam_base)

View file

@ -2,4 +2,4 @@
This addon depends on:
- [l10n_multilang](https://github.com/bringout/oca-ocb-l10n_me-africa/tree/7beca876f3da22d6c67f9c9028b2e2b9b6b28cfe/odoo-bringout-oca-ocb-l10n_multilang)
- [l10n_multilang](https://github.com/bringout/oca-ocb-l10n_me-africa/tree/e191cd8f93ecc64143ca51b522ee12b227b81968/odoo-bringout-oca-ocb-l10n_multilang)

View file

@ -2,5 +2,5 @@
This addon depends on:
- [account](https://github.com/bringout/oca-ocb-accounting/tree/6e99f2e941ecad12aceb9b1f887fbe526940de95/odoo-bringout-oca-ocb-account)
- [base_vat](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-base_vat)
- [account](https://github.com/bringout/oca-ocb-accounting/tree/3bdbee2033c3989f108204c90af9cf1db37bf0a0/odoo-bringout-oca-ocb-account)
- [base_vat](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-base_vat)

View file

@ -2,6 +2,6 @@
This addon depends on:
- [account](https://github.com/bringout/oca-ocb-accounting/tree/6e99f2e941ecad12aceb9b1f887fbe526940de95/odoo-bringout-oca-ocb-account)
- [base_iban](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-base_iban)
- [l10n_multilang](https://github.com/bringout/oca-ocb-l10n_me-africa/tree/7beca876f3da22d6c67f9c9028b2e2b9b6b28cfe/odoo-bringout-oca-ocb-l10n_multilang)
- [account](https://github.com/bringout/oca-ocb-accounting/tree/3bdbee2033c3989f108204c90af9cf1db37bf0a0/odoo-bringout-oca-ocb-account)
- [base_iban](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-base_iban)
- [l10n_multilang](https://github.com/bringout/oca-ocb-l10n_me-africa/tree/e191cd8f93ecc64143ca51b522ee12b227b81968/odoo-bringout-oca-ocb-l10n_multilang)

View file

@ -2,8 +2,8 @@
This addon depends on:
- [contacts](https://github.com/bringout/oca-ocb-technical/tree/b2a91e3b975dae4980028dc64efeda7a6a77a647/odoo-bringout-oca-ocb-contacts)
- [base_vat](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-base_vat)
- [l10n_latam_base](https://github.com/bringout/oca-ocb-l10n_europe/tree/df4e9c04063f84cdc1ffe56f3b52d86963add46e/odoo-bringout-oca-ocb-l10n_latam_base)
- [l10n_latam_invoice_document](https://github.com/bringout/oca-ocb-l10n_europe/tree/df4e9c04063f84cdc1ffe56f3b52d86963add46e/odoo-bringout-oca-ocb-l10n_latam_invoice_document)
- [uom](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-uom)
- [contacts](https://github.com/bringout/oca-ocb-technical/tree/800a8ab35febbc905f0bbd27ff013f5d4f07acf5/odoo-bringout-oca-ocb-contacts)
- [base_vat](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-base_vat)
- [l10n_latam_base](https://github.com/bringout/oca-ocb-l10n_europe/tree/d13d52acaf033ed99ee03c2c2a094b66fa3a343e/odoo-bringout-oca-ocb-l10n_latam_base)
- [l10n_latam_invoice_document](https://github.com/bringout/oca-ocb-l10n_europe/tree/d13d52acaf033ed99ee03c2c2a094b66fa3a343e/odoo-bringout-oca-ocb-l10n_latam_invoice_document)
- [uom](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-uom)

View file

@ -2,6 +2,6 @@
This addon depends on:
- [account](https://github.com/bringout/oca-ocb-accounting/tree/6e99f2e941ecad12aceb9b1f887fbe526940de95/odoo-bringout-oca-ocb-account)
- [account_debit_note](https://github.com/bringout/oca-ocb-accounting/tree/6e99f2e941ecad12aceb9b1f887fbe526940de95/odoo-bringout-oca-ocb-account_debit_note)
- [l10n_latam_base](https://github.com/bringout/oca-ocb-l10n_europe/tree/df4e9c04063f84cdc1ffe56f3b52d86963add46e/odoo-bringout-oca-ocb-l10n_latam_base)
- [account](https://github.com/bringout/oca-ocb-accounting/tree/3bdbee2033c3989f108204c90af9cf1db37bf0a0/odoo-bringout-oca-ocb-account)
- [account_debit_note](https://github.com/bringout/oca-ocb-accounting/tree/3bdbee2033c3989f108204c90af9cf1db37bf0a0/odoo-bringout-oca-ocb-account_debit_note)
- [l10n_latam_base](https://github.com/bringout/oca-ocb-l10n_europe/tree/d13d52acaf033ed99ee03c2c2a094b66fa3a343e/odoo-bringout-oca-ocb-l10n_latam_base)

View file

@ -2,5 +2,5 @@
This addon depends on:
- [l10n_co](https://github.com/bringout/oca-ocb-l10n_americas/tree/c35975b6f4267299989c71981139c339d16c1efd/odoo-bringout-oca-ocb-l10n_co)
- [point_of_sale](https://github.com/bringout/oca-ocb-sale/tree/cfc4dbeb59ab3594bd1aa8f3bb16a1ee00557b4d/odoo-bringout-oca-ocb-point_of_sale)
- [l10n_co](https://github.com/bringout/oca-ocb-l10n_americas/tree/3216ae97bdbd4fee204c805fa40bbc9e5c44c8de/odoo-bringout-oca-ocb-l10n_co)
- [point_of_sale](https://github.com/bringout/oca-ocb-sale/tree/5d9b47ce90463a1c61e6fb80db86d42fb811e501/odoo-bringout-oca-ocb-point_of_sale)

View file

@ -2,9 +2,9 @@
This addon depends on:
- [base](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-base)
- [base_iban](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-base_iban)
- [account](https://github.com/bringout/oca-ocb-accounting/tree/6e99f2e941ecad12aceb9b1f887fbe526940de95/odoo-bringout-oca-ocb-account)
- [account_debit_note](https://github.com/bringout/oca-ocb-accounting/tree/6e99f2e941ecad12aceb9b1f887fbe526940de95/odoo-bringout-oca-ocb-account_debit_note)
- [l10n_latam_invoice_document](https://github.com/bringout/oca-ocb-l10n_europe/tree/df4e9c04063f84cdc1ffe56f3b52d86963add46e/odoo-bringout-oca-ocb-l10n_latam_invoice_document)
- [l10n_latam_base](https://github.com/bringout/oca-ocb-l10n_europe/tree/df4e9c04063f84cdc1ffe56f3b52d86963add46e/odoo-bringout-oca-ocb-l10n_latam_base)
- [base](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-base)
- [base_iban](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-base_iban)
- [account](https://github.com/bringout/oca-ocb-accounting/tree/3bdbee2033c3989f108204c90af9cf1db37bf0a0/odoo-bringout-oca-ocb-account)
- [account_debit_note](https://github.com/bringout/oca-ocb-accounting/tree/3bdbee2033c3989f108204c90af9cf1db37bf0a0/odoo-bringout-oca-ocb-account_debit_note)
- [l10n_latam_invoice_document](https://github.com/bringout/oca-ocb-l10n_europe/tree/d13d52acaf033ed99ee03c2c2a094b66fa3a343e/odoo-bringout-oca-ocb-l10n_latam_invoice_document)
- [l10n_latam_base](https://github.com/bringout/oca-ocb-l10n_europe/tree/d13d52acaf033ed99ee03c2c2a094b66fa3a343e/odoo-bringout-oca-ocb-l10n_latam_base)

View file

@ -2,5 +2,5 @@
This addon depends on:
- [l10n_ec](https://github.com/bringout/oca-ocb-l10n_americas/tree/c35975b6f4267299989c71981139c339d16c1efd/odoo-bringout-oca-ocb-l10n_ec)
- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/ffbc26923f1cbb52ea57b79a3bc1781623af2ae9/odoo-bringout-oca-ocb-stock)
- [l10n_ec](https://github.com/bringout/oca-ocb-l10n_americas/tree/3216ae97bdbd4fee204c805fa40bbc9e5c44c8de/odoo-bringout-oca-ocb-l10n_ec)
- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/1135de9279731def9c756b5192f8860b5a0e7e59/odoo-bringout-oca-ocb-stock)

View file

@ -2,5 +2,5 @@
This addon depends on:
- [l10n_gcc_invoice](https://github.com/bringout/oca-ocb-l10n_asia-pacific/tree/6b06ac10c32a7858991d27e9c6b5cd637ff15900/odoo-bringout-oca-ocb-l10n_gcc_invoice)
- [stock_account](https://github.com/bringout/oca-ocb-accounting/tree/6e99f2e941ecad12aceb9b1f887fbe526940de95/odoo-bringout-oca-ocb-stock_account)
- [l10n_gcc_invoice](https://github.com/bringout/oca-ocb-l10n_asia-pacific/tree/86f7908fd0ba29862981c528aa33787682678ca3/odoo-bringout-oca-ocb-l10n_gcc_invoice)
- [stock_account](https://github.com/bringout/oca-ocb-accounting/tree/3bdbee2033c3989f108204c90af9cf1db37bf0a0/odoo-bringout-oca-ocb-stock_account)

View file

@ -2,4 +2,4 @@
This addon depends on:
- [account](https://github.com/bringout/oca-ocb-accounting/tree/6e99f2e941ecad12aceb9b1f887fbe526940de95/odoo-bringout-oca-ocb-account)
- [account](https://github.com/bringout/oca-ocb-accounting/tree/3bdbee2033c3989f108204c90af9cf1db37bf0a0/odoo-bringout-oca-ocb-account)

View file

@ -2,5 +2,5 @@
This addon depends on:
- [l10n_id](https://github.com/bringout/oca-ocb-l10n_asia-pacific/tree/6b06ac10c32a7858991d27e9c6b5cd637ff15900/odoo-bringout-oca-ocb-l10n_id)
- [l10n_id_efaktur](https://github.com/bringout/oca-ocb-l10n_asia-pacific/tree/6b06ac10c32a7858991d27e9c6b5cd637ff15900/odoo-bringout-oca-ocb-l10n_id_efaktur)
- [l10n_id](https://github.com/bringout/oca-ocb-l10n_asia-pacific/tree/86f7908fd0ba29862981c528aa33787682678ca3/odoo-bringout-oca-ocb-l10n_id)
- [l10n_id_efaktur](https://github.com/bringout/oca-ocb-l10n_asia-pacific/tree/86f7908fd0ba29862981c528aa33787682678ca3/odoo-bringout-oca-ocb-l10n_id_efaktur)

View file

@ -2,5 +2,5 @@
This addon depends on:
- [l10n_lu](https://github.com/bringout/oca-ocb-l10n_europe/tree/df4e9c04063f84cdc1ffe56f3b52d86963add46e/odoo-bringout-oca-ocb-l10n_lu)
- [account_edi_ubl_cii](https://github.com/bringout/oca-ocb-accounting/tree/6e99f2e941ecad12aceb9b1f887fbe526940de95/odoo-bringout-oca-ocb-account_edi_ubl_cii)
- [l10n_lu](https://github.com/bringout/oca-ocb-l10n_europe/tree/d13d52acaf033ed99ee03c2c2a094b66fa3a343e/odoo-bringout-oca-ocb-l10n_lu)
- [account_edi_ubl_cii](https://github.com/bringout/oca-ocb-accounting/tree/3bdbee2033c3989f108204c90af9cf1db37bf0a0/odoo-bringout-oca-ocb-account_edi_ubl_cii)

View file

@ -2,4 +2,4 @@
This addon depends on:
- [account](https://github.com/bringout/oca-ocb-accounting/tree/6e99f2e941ecad12aceb9b1f887fbe526940de95/odoo-bringout-oca-ocb-account)
- [account](https://github.com/bringout/oca-ocb-accounting/tree/3bdbee2033c3989f108204c90af9cf1db37bf0a0/odoo-bringout-oca-ocb-account)

View file

@ -2,8 +2,8 @@
This addon depends on:
- [base_vat](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-base_vat)
- [base_address_extended](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-base_address_extended)
- [l10n_latam_base](https://github.com/bringout/oca-ocb-l10n_europe/tree/df4e9c04063f84cdc1ffe56f3b52d86963add46e/odoo-bringout-oca-ocb-l10n_latam_base)
- [l10n_latam_invoice_document](https://github.com/bringout/oca-ocb-l10n_europe/tree/df4e9c04063f84cdc1ffe56f3b52d86963add46e/odoo-bringout-oca-ocb-l10n_latam_invoice_document)
- [account_debit_note](https://github.com/bringout/oca-ocb-accounting/tree/6e99f2e941ecad12aceb9b1f887fbe526940de95/odoo-bringout-oca-ocb-account_debit_note)
- [base_vat](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-base_vat)
- [base_address_extended](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-base_address_extended)
- [l10n_latam_base](https://github.com/bringout/oca-ocb-l10n_europe/tree/d13d52acaf033ed99ee03c2c2a094b66fa3a343e/odoo-bringout-oca-ocb-l10n_latam_base)
- [l10n_latam_invoice_document](https://github.com/bringout/oca-ocb-l10n_europe/tree/d13d52acaf033ed99ee03c2c2a094b66fa3a343e/odoo-bringout-oca-ocb-l10n_latam_invoice_document)
- [account_debit_note](https://github.com/bringout/oca-ocb-accounting/tree/3bdbee2033c3989f108204c90af9cf1db37bf0a0/odoo-bringout-oca-ocb-account_debit_note)

View file

@ -2,4 +2,4 @@
This addon depends on:
- [account](https://github.com/bringout/oca-ocb-accounting/tree/6e99f2e941ecad12aceb9b1f887fbe526940de95/odoo-bringout-oca-ocb-account)
- [account](https://github.com/bringout/oca-ocb-accounting/tree/3bdbee2033c3989f108204c90af9cf1db37bf0a0/odoo-bringout-oca-ocb-account)

View file

@ -2,4 +2,4 @@
This addon depends on:
- [l10n_generic_coa](https://github.com/bringout/oca-ocb-l10n_americas/tree/c35975b6f4267299989c71981139c339d16c1efd/odoo-bringout-oca-ocb-l10n_generic_coa)
- [l10n_generic_coa](https://github.com/bringout/oca-ocb-l10n_americas/tree/3216ae97bdbd4fee204c805fa40bbc9e5c44c8de/odoo-bringout-oca-ocb-l10n_generic_coa)

View file

@ -2,4 +2,4 @@
This addon depends on:
- [account](https://github.com/bringout/oca-ocb-accounting/tree/6e99f2e941ecad12aceb9b1f887fbe526940de95/odoo-bringout-oca-ocb-account)
- [account](https://github.com/bringout/oca-ocb-accounting/tree/3bdbee2033c3989f108204c90af9cf1db37bf0a0/odoo-bringout-oca-ocb-account)

View file

@ -2,4 +2,4 @@
This addon depends on:
- [account](https://github.com/bringout/oca-ocb-accounting/tree/6e99f2e941ecad12aceb9b1f887fbe526940de95/odoo-bringout-oca-ocb-account)
- [account](https://github.com/bringout/oca-ocb-accounting/tree/3bdbee2033c3989f108204c90af9cf1db37bf0a0/odoo-bringout-oca-ocb-account)