[Rpm-maint] [rpm-software-management/rpm] Move ~/.rpmmacros and ~/.rpmrc to ~/.config/rpm/ (PR #3750)
Florian Festi
notifications at github.com
Fri Jun 27 08:01:14 UTC 2025
@ffesti commented on this pull request.
> + fs::path newrpmrc = userdir_path / "rpmrc";
+
+ if (!isatty(0)) /* only on interactive runs */
+ return -1;
+
+ if (!fs::is_regular_file(oldmacros) && !fs::is_regular_file(oldrpmrc))
+ return -1;
+
+ int fd = open(lockfile.c_str(), O_CREAT|O_EXCL|O_WRONLY, 0644);
+ if (fd < 0)
+ return -1;
+ close(fd);
+
+ /* recheck after acquiring lock */
+ if ((!fs::is_regular_file(oldmacros) && !fs::is_regular_file(oldrpmrc)) ||
+ fs::exists(userdir_path)) {
Hmpf, ... Fooled by the "outdated" sticker... Fixed now.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3750#discussion_r2171124011
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3750/review/2965261138 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250627/5d1d4ed1/attachment.htm>
More information about the Rpm-maint
mailing list