@pmatilai commented on this pull request.


> +    if (fs::is_regular_file(oldmacros)) {
+       fs::remove(oldmacros, ec);
+       if (ec) goto undo_remove;
+       fs::create_symlink(macros_target , oldmacros, ec);
+       if (ec) goto undo_remove;
+    }
+    if (fs::is_regular_file(oldrpmrc)) {
+       fs::remove(oldrpmrc, ec);
+       if (ec) goto undo_remove;
+       fs::create_symlink(rpmrc_target , oldrpmrc, ec);
+       if (ec) goto undo_remove;
+    }
+
+    if (fs::is_symlink(oldmacros))
+       rpmlog(RPMLOG_WARNING, "Migrated %s to %s (leaving a symlink)\n",
+              oldmacros.c_str(), newmacros.c_str());

Use {} blocks on multiline ifs. The compiler thinks it's a single line but it's 
easier on weary eyes... 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3750#pullrequestreview-2910181363
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/3750/review/[email protected]>
_______________________________________________
Rpm-maint mailing list
[email protected]
https://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to