purpleidea / mgmt

Next generation distributed, event-driven, parallel config management!
https://purpleidea.com/tags/mgmtconfig/
GNU General Public License v3.0
3.58k stars 311 forks source link

FR (packagekit): allow refreshing the cache #712

Closed phm07 closed 1 year ago

phm07 commented 1 year ago

Hi,

I'm currently using this repo's PackageKit bindings in my Go project, since there is no other library available. It would be nice to have a mapping for the RefreshCache method, because GetUpdates() will only return cached and possibly out of date packages otherwise.

Since there have been no changes to packagekit.go for a few years and RefreshCache() is probably not needed for your project, I can imagine that this FR would not have very high priority. It would still be possible to spawn pkcon refresh subprocess, although a mapping in the library would be better. Please let me know if you are interested in implementing this.

Best regards

purpleidea commented 1 year ago

Patches are certainly welcome! If you cannot write the patch but want such a feature anyways, then you would have to pay money for it, but that could probably be arranged. Cheers

purpleidea commented 1 year ago

Btw, your https://github.com/pauhull/bananascript/ library looks really interesting! Maybe helping out with our compiler would be really fun for you! We'd certainly appreciate it.