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:23 +02:00
parent 7fb3fb6283
commit 8ba7c48b94
23 changed files with 53 additions and 53 deletions

View file

@ -2,7 +2,7 @@
This addon depends on:
- [base_setup](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-base_setup)
- [mail](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-mail)
- [resource](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-resource)
- [web](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-web)
- [base_setup](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-base_setup)
- [mail](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-mail)
- [resource](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-resource)
- [web](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-web)

View file

@ -2,5 +2,5 @@
This addon depends on:
- [hr](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr)
- [barcodes](https://github.com/bringout/oca-ocb-technical/tree/b2a91e3b975dae4980028dc64efeda7a6a77a647/odoo-bringout-oca-ocb-barcodes)
- [hr](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr)
- [barcodes](https://github.com/bringout/oca-ocb-technical/tree/800a8ab35febbc905f0bbd27ff013f5d4f07acf5/odoo-bringout-oca-ocb-barcodes)

View file

@ -2,4 +2,4 @@
This addon depends on:
- [hr](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr)
- [hr](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr)

View file

@ -2,6 +2,6 @@
This addon depends on:
- [hr_contract](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr_contract)
- [account](https://github.com/bringout/oca-ocb-accounting/tree/6e99f2e941ecad12aceb9b1f887fbe526940de95/odoo-bringout-oca-ocb-account)
- [web_tour](https://github.com/bringout/oca-ocb-web/tree/00a6994d033e4c605f58b875d71530d9614d9bab/odoo-bringout-oca-ocb-web_tour)
- [hr_contract](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr_contract)
- [account](https://github.com/bringout/oca-ocb-accounting/tree/3bdbee2033c3989f108204c90af9cf1db37bf0a0/odoo-bringout-oca-ocb-account)
- [web_tour](https://github.com/bringout/oca-ocb-web/tree/573c5dd25aad276b803e5238d2bca395e0599023/odoo-bringout-oca-ocb-web_tour)

View file

@ -2,5 +2,5 @@
This addon depends on:
- [hr](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr)
- [fleet](https://github.com/bringout/oca-ocb-vertical-industry/tree/7ee4083ca6c94b59be4ae55cea5a820320a163ad/odoo-bringout-oca-ocb-fleet)
- [hr](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr)
- [fleet](https://github.com/bringout/oca-ocb-vertical-industry/tree/5cedbd8bd34060e6f7896c5fadca47ee18e309d3/odoo-bringout-oca-ocb-fleet)

View file

@ -2,5 +2,5 @@
This addon depends on:
- [gamification](https://github.com/bringout/oca-ocb-vertical-industry/tree/7ee4083ca6c94b59be4ae55cea5a820320a163ad/odoo-bringout-oca-ocb-gamification)
- [hr](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr)
- [gamification](https://github.com/bringout/oca-ocb-vertical-industry/tree/5cedbd8bd34060e6f7896c5fadca47ee18e309d3/odoo-bringout-oca-ocb-gamification)
- [hr](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr)

View file

@ -2,6 +2,6 @@
This addon depends on:
- [hr](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr)
- [calendar](https://github.com/bringout/oca-ocb-technical/tree/b2a91e3b975dae4980028dc64efeda7a6a77a647/odoo-bringout-oca-ocb-calendar)
- [resource](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-resource)
- [hr](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr)
- [calendar](https://github.com/bringout/oca-ocb-technical/tree/800a8ab35febbc905f0bbd27ff013f5d4f07acf5/odoo-bringout-oca-ocb-calendar)
- [resource](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-resource)

View file

@ -2,5 +2,5 @@
This addon depends on:
- [hr_attendance](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr_attendance)
- [hr_holidays](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr_holidays)
- [hr_attendance](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr_attendance)
- [hr_holidays](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr_holidays)

View file

@ -2,4 +2,4 @@
This addon depends on:
- [hr](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr)
- [hr](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr)

View file

@ -2,5 +2,5 @@
This addon depends on:
- [hr](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr)
- [maintenance](https://github.com/bringout/oca-ocb-vertical-industry/tree/7ee4083ca6c94b59be4ae55cea5a820320a163ad/odoo-bringout-oca-ocb-maintenance)
- [hr](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr)
- [maintenance](https://github.com/bringout/oca-ocb-vertical-industry/tree/5cedbd8bd34060e6f7896c5fadca47ee18e309d3/odoo-bringout-oca-ocb-maintenance)

View file

@ -2,4 +2,4 @@
This addon depends on:
- [hr](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr)
- [hr](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr)

View file

@ -2,6 +2,6 @@
This addon depends on:
- [hr](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr)
- [hr_holidays](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr_holidays)
- [sms](https://github.com/bringout/oca-ocb-mail/tree/cf28d72fa447cbe72e9004691397255796aaa651/odoo-bringout-oca-ocb-sms)
- [hr](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr)
- [hr_holidays](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr_holidays)
- [sms](https://github.com/bringout/oca-ocb-mail/tree/dba59fd2db10fc6a6fa1b0d807bf3edad793f7c3/odoo-bringout-oca-ocb-sms)

View file

@ -2,9 +2,9 @@
This addon depends on:
- [hr](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr)
- [calendar](https://github.com/bringout/oca-ocb-technical/tree/b2a91e3b975dae4980028dc64efeda7a6a77a647/odoo-bringout-oca-ocb-calendar)
- [utm](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-utm)
- [attachment_indexation](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-attachment_indexation)
- [web_tour](https://github.com/bringout/oca-ocb-web/tree/00a6994d033e4c605f58b875d71530d9614d9bab/odoo-bringout-oca-ocb-web_tour)
- [digest](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-digest)
- [hr](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr)
- [calendar](https://github.com/bringout/oca-ocb-technical/tree/800a8ab35febbc905f0bbd27ff013f5d4f07acf5/odoo-bringout-oca-ocb-calendar)
- [utm](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-utm)
- [attachment_indexation](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-attachment_indexation)
- [web_tour](https://github.com/bringout/oca-ocb-web/tree/573c5dd25aad276b803e5238d2bca395e0599023/odoo-bringout-oca-ocb-web_tour)
- [digest](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-digest)

View file

@ -2,5 +2,5 @@
This addon depends on:
- [hr_skills](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr_skills)
- [hr_recruitment](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr_recruitment)
- [hr_skills](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr_skills)
- [hr_recruitment](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr_recruitment)

View file

@ -2,5 +2,5 @@
This addon depends on:
- [survey](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-survey)
- [hr_recruitment](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr_recruitment)
- [survey](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-survey)
- [hr_recruitment](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr_recruitment)

View file

@ -2,4 +2,4 @@
This addon depends on:
- [hr](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr)
- [hr](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr)

View file

@ -2,5 +2,5 @@
This addon depends on:
- [hr_skills](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr_skills)
- [website_slides](https://github.com/bringout/oca-ocb-website/tree/bd6600a1205eb4c26e7f290fe92240c883985125/odoo-bringout-oca-ocb-website_slides)
- [hr_skills](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr_skills)
- [website_slides](https://github.com/bringout/oca-ocb-website/tree/03e03d5574c9d9e357b09fadc1b8eea46aeb8fc8/odoo-bringout-oca-ocb-website_slides)

View file

@ -2,5 +2,5 @@
This addon depends on:
- [hr_skills](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr_skills)
- [survey](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-survey)
- [hr_skills](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr_skills)
- [survey](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-survey)

View file

@ -2,8 +2,8 @@
This addon depends on:
- [hr](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr)
- [hr_hourly_cost](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr_hourly_cost)
- [analytic](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-analytic)
- [project](https://github.com/bringout/oca-ocb-project/tree/7a956d96b89e1461e088e858c00a4cf1d573f5fb/odoo-bringout-oca-ocb-project)
- [uom](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-uom)
- [hr](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr)
- [hr_hourly_cost](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr_hourly_cost)
- [analytic](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-analytic)
- [project](https://github.com/bringout/oca-ocb-project/tree/0112fcb0c9766c2d5bf735c19a409b3524c53336/odoo-bringout-oca-ocb-project)
- [uom](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-uom)

View file

@ -2,5 +2,5 @@
This addon depends on:
- [hr_timesheet](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr_timesheet)
- [hr_attendance](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr_attendance)
- [hr_timesheet](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr_timesheet)
- [hr_attendance](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr_attendance)

View file

@ -2,4 +2,4 @@
This addon depends on:
- [hr](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr)
- [hr](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr)

View file

@ -2,5 +2,5 @@
This addon depends on:
- [hr_work_entry](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr_work_entry)
- [hr_contract](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr_contract)
- [hr_work_entry](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr_work_entry)
- [hr_contract](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr_contract)

View file

@ -2,5 +2,5 @@
This addon depends on:
- [hr_holidays](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr_holidays)
- [hr_work_entry_contract](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr_work_entry_contract)
- [hr_holidays](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr_holidays)
- [hr_work_entry_contract](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr_work_entry_contract)