Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/tools/pm_apply
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ mangle_libpath() {
sedcmd=""
# look for lines to convert, if some are found add pattern to sed scriptlet
for p in $candidates; do
cand_lines=$(grep -c "^\+\+\+ [^/]*$p" "$PATCH_PATH")
cand_lines=$(grep -c "^+++ [^/]*$p" "$PATCH_PATH")
if [ $cand_lines -eq 0 ]; then
continue # nothing found, try next
fi
Expand All @@ -118,7 +118,7 @@ mangle_libpath() {
failure
fi
# append at the front so ';' can be easily used for separation
sedcmd="s@^\+\+\+ \([^/]*\)$p@+++ \1$pr@;s@^--- \([^/]*\)$p@--- \1$pr@;$sedcmd"
sedcmd="s@^+++ \([^/]*\)$p@+++ \1$pr@g;s@^--- \([^/]*\)$p@--- \1$pr@g;$sedcmd"
done

if [ $found -eq 0 ]; then
Expand Down