M => +2 -0
@@ 22,6 22,8 @@ done
pdir="${series%/*}"
from=${def_from}
test -f "$series" || exit 1
exec 3>&0
while read -r p
do
M qseries => qseries +2 -1
@@ 15,7 15,8 @@ die()
pdir="${1:-patches}"
-test -e "$pdir"/series && die "series file exists!"
+test -d "$pdir" || die "Patches directory not found!"
+test -e "$pdir"/series && die "Series file exists!"
{ find "$pdir" -type f \! \( -name '*~' -o -name '*.orig' \) |
while read -r f