Skip to content

Commit b9a5752

Browse files
committed
sage-git-patch.eclass: fix error in eclass that prevent meangful patching of packages other than sagemath-standard and sage-doc
1 parent 3d7c593 commit b9a5752

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

eclass/sage-git-patch.eclass

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ sage-git-patch_patch() {
7373
echo "Processing for ${tree}"
7474
for patch in "${GIT_PRS[@]}"; do
7575
# remove files with patchutils
76-
filterdiff -i "*/${tree}/*" "${DISTDIR}/sagemath_PR${patch}.patch" > \
76+
# do not include a final "/" in the pattern to catch things like sage_docbuild or sage_setup.
77+
filterdiff -i "*/${tree}*" "${DISTDIR}/sagemath_PR${patch}.patch" > \
7778
"${T}/${patch}_proc.patch" \
7879
|| die "patch for PR ${patch} not found"
7980
eapply "${plevel}" "${T}/${patch}_proc.patch"

0 commit comments

Comments
 (0)