[minetest-mod-mobf-core.git] 01/06: Add patch to fix the global_exists function
Julien Puydt
julien.puydt at laposte.net
Sun Oct 8 08:14:53 UTC 2017
This is an automated email from the git hooks/post-receive script.
jpuydt-guest pushed a commit to branch master
in repository minetest-mod-mobf-core.git.
commit 81467927eb5a483be5f84a841b9e3518b3699379
Author: Julien Puydt <julien.puydt at laposte.net>
Date: Sun Oct 8 09:40:40 2017 +0200
Add patch to fix the global_exists function
---
debian/changelog | 6 ++++++
debian/patches/fix_global_exists.patch | 19 +++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 26 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index c768cbe..47aafd9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+minetest-mod-mobf-core (2.5.1-3) UNRELEASED; urgency=medium
+
+ * Add upstream patch to fix a bug.
+
+ -- Julien Puydt <julien.puydt at laposte.net> Sun, 08 Oct 2017 09:37:22 +0200
+
minetest-mod-mobf-core (2.5.1-2) unstable; urgency=medium
* Add Breaks+Replace for minetest-mod-mobf. (Closes: #838627)
diff --git a/debian/patches/fix_global_exists.patch b/debian/patches/fix_global_exists.patch
new file mode 100644
index 0000000..f7d41fc
--- /dev/null
+++ b/debian/patches/fix_global_exists.patch
@@ -0,0 +1,19 @@
+Description: fix the global_exists function
+Author: numberZero
+Comment: it is an upstream patch
+Forwarded: no
+
+--- a/mobf/init.lua
++++ b/mobf/init.lua
+@@ -64,9 +64,9 @@
+
+ -- minetest workarounds
+
+-if not type(core.global_exists) ~= "function" then
++if type(core.global_exists) ~= "function" then
+ core.global_exists = function(name)
+- return core[name] ~= nil
++ return rawget(_G, name) ~= nil
+ end
+ end
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..0ecfe6f
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix_global_exists.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/minetest-mod-mobf-core.git.git
More information about the Pkg-games-commits
mailing list