void-packages/srcpkgs/masterpassword-cli/patches/lowercase-boolean.patch
Đoàn Trần Công Danh 765e304c4b srcpkgs/m*: convert patches to -Np1
```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

11 lines
341 B
Diff

--- a/core/c/mpw-marshal-util.c 2017-09-25 02:59:09.000000000 -0400
+++ b/core/c/mpw-marshal-util.c 2020-05-31 11:32:02.362438198 -0400
@@ -112,7 +112,7 @@
if (!json_value)
return defaultValue;
- return json_object_get_boolean( json_value ) == TRUE;
+ return json_object_get_boolean( json_value ) == true;
}
#endif