diff options
Diffstat (limited to 'libs/project')
-rwxr-xr-x | libs/project | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/libs/project b/libs/project index 34b139a5..b130af17 100755 --- a/libs/project +++ b/libs/project @@ -584,7 +584,7 @@ project_sources_patch_recursive() { fi for patch in "$patches_path"/[!.]*.@(patch|diff); do - diff_patch "$sources_path" "$patch" || return 1 + project_sources_patch "$sources_path" "$patch" || return 1 done if [[ -n $path && $path != . ]]; then @@ -608,6 +608,17 @@ project_blobs() { fi } +project_sources_patch() { + local sources_path=$1 + local patch_path=$2 + + if diff_patch_check "$sources_path" "$patch_path"; then + diff_patch "$sources_path" "$patch_path" + else + return 1 + fi +} + project_blobs_path() { local project=$1 shift |