mirror of
https://github.com/dynup/kpatch
synced 2025-02-16 17:57:02 +00:00
kpatch-build: fix missed parameter of verify_patch_files
Verify_patch_files() use `lsdiff` to get patches' path and verify they are supported. To be consistent with apply_patches() which using `patch -p1`, `lsdiff` should use '--strip=1' paremeter. Close: #1357 Signed-off-by: Kai Zhang <zhangkai@iscas.ac.cn>
This commit is contained in:
parent
f594a5c3ea
commit
671fe2ce01
@ -119,7 +119,7 @@ verify_patch_files() {
|
||||
local ret=0
|
||||
|
||||
for patch in "${PATCH_LIST[@]}"; do
|
||||
for path in $(lsdiff "$patch" 2>/dev/null); do
|
||||
for path in $(lsdiff --strip=1 "$patch" 2>/dev/null); do
|
||||
|
||||
dir=$(dirname "$path")
|
||||
ext="${path##*.}"
|
||||
|
Loading…
Reference in New Issue
Block a user