Date: Wednesday, March 29, 2023 @ 20:00:29
  Author: eworm
Revision: 1430311

update the backports and reverts code in prepare()

Modified:
  lib32-systemd/trunk/PKGBUILD

----------+
 PKGBUILD |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-03-29 19:52:09 UTC (rev 1430310)
+++ PKGBUILD    2023-03-29 20:00:29 UTC (rev 1430311)
@@ -41,9 +41,15 @@
 
   local _c
   for _c in "${_backports[@]}"; do
-    git cherry-pick -n "${_c}"
+    if [[ $_c == *..* ]]; then
+      git log --oneline --reverse "${_c}"
+    else
+      git log --oneline -1 "${_c}"
+    fi
+    git cherry-pick -n -m1 "${_c}"
   done
   for _c in "${_reverts[@]}"; do
+    git log --oneline -1 "${_c}"
     git revert -n "${_c}"
   done
 }

Reply via email to