pmatilai left a comment (rpm-software-management/rpm#3750)
Having slept over it, I think the best way to tame the situations where the
migration may happen to something manageable is hooking it to programs that run
rpmcliInit() / rpmcliFini().
There's even a variable that tracks the the thing we need already, all you need
is something like
```
int rpmcliIsConfigured(void)
{
return rpmcliInitialized == 0;
}
```
...and then check for that as the first condition when considering the
migration. And *then* it should be safe enough to be merged.
I'm calling it rpmcliIsConfigured() instead of somethinginitialized because
there's already rpmcliConfigured() that you call if you want to ensure cli has
been initialized, and this new function pairs with that: check if it's
initialized without initializing as a side-effect.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3750#issuecomment-3018059072
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3750/[email protected]>_______________________________________________
Rpm-maint mailing list
[email protected]
https://lists.rpm.org/mailman/listinfo/rpm-maint