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:29:06 +02:00
parent fea1673a12
commit 0e1299fdc1
7 changed files with 10 additions and 10 deletions

View file

@ -4,5 +4,5 @@ This addon depends on:
- [fs_base_multi_image](https://github.com/bringout/oca-storage) - [fs_base_multi_image](https://github.com/bringout/oca-storage)
- [product_brand](https://github.com/bringout/oca-technical) - [product_brand](https://github.com/bringout/oca-technical)
- [sales_team](https://github.com/bringout/oca-ocb-sale/tree/cfc4dbeb59ab3594bd1aa8f3bb16a1ee00557b4d/odoo-bringout-oca-ocb-sales_team) - [sales_team](https://github.com/bringout/oca-ocb-sale/tree/5d9b47ce90463a1c61e6fb80db86d42fb811e501/odoo-bringout-oca-ocb-sales_team)
- [image_tag](https://github.com/bringout/oca-storage) - [image_tag](https://github.com/bringout/oca-storage)

View file

@ -3,6 +3,6 @@
This addon depends on: This addon depends on:
- [fs_base_multi_image](https://github.com/bringout/oca-storage) - [fs_base_multi_image](https://github.com/bringout/oca-storage)
- [product](https://github.com/bringout/oca-ocb-sale/tree/cfc4dbeb59ab3594bd1aa8f3bb16a1ee00557b4d/odoo-bringout-oca-ocb-product) - [product](https://github.com/bringout/oca-ocb-sale/tree/5d9b47ce90463a1c61e6fb80db86d42fb811e501/odoo-bringout-oca-ocb-product)
- [sales_team](https://github.com/bringout/oca-ocb-sale/tree/cfc4dbeb59ab3594bd1aa8f3bb16a1ee00557b4d/odoo-bringout-oca-ocb-sales_team) - [sales_team](https://github.com/bringout/oca-ocb-sale/tree/5d9b47ce90463a1c61e6fb80db86d42fb811e501/odoo-bringout-oca-ocb-sales_team)
- [image_tag](https://github.com/bringout/oca-storage) - [image_tag](https://github.com/bringout/oca-storage)

View file

@ -3,5 +3,5 @@
This addon depends on: This addon depends on:
- [fs_base_multi_media](https://github.com/bringout/oca-storage) - [fs_base_multi_media](https://github.com/bringout/oca-storage)
- [product](https://github.com/bringout/oca-ocb-sale/tree/cfc4dbeb59ab3594bd1aa8f3bb16a1ee00557b4d/odoo-bringout-oca-ocb-product) - [product](https://github.com/bringout/oca-ocb-sale/tree/5d9b47ce90463a1c61e6fb80db86d42fb811e501/odoo-bringout-oca-ocb-product)
- [sales_team](https://github.com/bringout/oca-ocb-sale/tree/cfc4dbeb59ab3594bd1aa8f3bb16a1ee00557b4d/odoo-bringout-oca-ocb-sales_team) - [sales_team](https://github.com/bringout/oca-ocb-sale/tree/5d9b47ce90463a1c61e6fb80db86d42fb811e501/odoo-bringout-oca-ocb-sales_team)

View file

@ -3,5 +3,5 @@
This addon depends on: This addon depends on:
- [fs_base_multi_image](https://github.com/bringout/oca-storage) - [fs_base_multi_image](https://github.com/bringout/oca-storage)
- [website_sale](https://github.com/bringout/oca-ocb-sale/tree/cfc4dbeb59ab3594bd1aa8f3bb16a1ee00557b4d/odoo-bringout-oca-ocb-website_sale) - [website_sale](https://github.com/bringout/oca-ocb-sale/tree/5d9b47ce90463a1c61e6fb80db86d42fb811e501/odoo-bringout-oca-ocb-website_sale)
- [image_tag](https://github.com/bringout/oca-storage) - [image_tag](https://github.com/bringout/oca-storage)

View file

@ -2,6 +2,6 @@
This addon depends on: This addon depends on:
- [base](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-base) - [base](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-base)
- [base_sparse_field](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-base_sparse_field) - [base_sparse_field](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-base_sparse_field)
- server_environment - server_environment

View file

@ -3,4 +3,4 @@
This addon depends on: This addon depends on:
- [fs_storage](https://github.com/bringout/oca-storage) - [fs_storage](https://github.com/bringout/oca-storage)
- [mail](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-mail) - [mail](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-mail)

View file

@ -2,6 +2,6 @@
This addon depends on: This addon depends on:
- [base](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-base) - [base](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-base)
- [component](https://github.com/bringout/oca-technical) - [component](https://github.com/bringout/oca-technical)
- server_environment - server_environment