[Rpm-maint] [rpm-software-management/rpm] Move ~/.rpmmacros and ~/.rpmrc to ~/.config/rpm/ (PR #3750)
Panu Matilainen
notifications at github.com
Mon Jun 30 07:15:19 UTC 2025
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/c3018059072 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250630/a66fc153/attachment.htm>
More information about the Rpm-maint
mailing list