[minetest-mod-craftguide] 01/05: Fix warnings at startup

Julien Puydt julien.puydt at laposte.net
Tue Oct 3 20:48:50 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-craftguide.

commit 9172828fcb66cac31d7e1cdd99f09ad44165e2b3
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Tue Oct 3 22:32:12 2017 +0200

    Fix warnings at startup
---
 debian/changelog                       |  6 ++++++
 debian/control                         |  2 +-
 debian/install                         |  2 +-
 debian/patches/series                  |  1 +
 debian/patches/update_config_api.patch | 12 ++++++++++++
 debian/rules                           |  8 ++++++++
 6 files changed, 29 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 20ed93d..bbf6f1a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+minetest-mod-craftguide (1.0-2) UNRELEASED; urgency=medium
+
+  * Fix warnings. (Closes: #877489)
+
+ -- Julien Puydt <julien.puydt at laposte.net>  Tue, 03 Oct 2017 22:30:50 +0200
+
 minetest-mod-craftguide (1.0-1) unstable; urgency=medium
 
   * Initial release. (Closes: #857685)
diff --git a/debian/control b/debian/control
index 4362ce5..ac64768 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: games
 Priority: optional
 Maintainer: Debian Games Team <pkg-games-devel at lists.alioth.debian.org>
 Uploaders: Julien Puydt <julien.puydt at laposte.net>
-Build-Depends: debhelper (>= 10)
+Build-Depends: debhelper (>= 10), imagemagick
 Standards-Version: 3.9.8
 Homepage: https://github.com/minetest-mods/craftguide
 Vcs-Git: https://anonscm.debian.org/git/pkg-games/minetest-mod-craftguide.git
diff --git a/debian/install b/debian/install
index 54058c6..5f1c11f 100644
--- a/debian/install
+++ b/debian/install
@@ -1,4 +1,4 @@
 mod.conf usr/share/games/minetest/mods/craftguide
-textures usr/share/games/minetest/mods/craftguide
+textures_fixed/*.png usr/share/games/minetest/mods/craftguide/textures/
 description.txt usr/share/games/minetest/mods/craftguide
 init.lua usr/share/games/minetest/mods/craftguide
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..ff133cb
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+update_config_api.patch
diff --git a/debian/patches/update_config_api.patch b/debian/patches/update_config_api.patch
new file mode 100644
index 0000000..433e00b
--- /dev/null
+++ b/debian/patches/update_config_api.patch
@@ -0,0 +1,12 @@
+Description: update to the new config api
+Author: Julien Puydt
+Forwarded: yes
+--- a/init.lua
++++ b/init.lua
+@@ -1,5 +1,5 @@
+ local craftguide, datas, mt = {}, {}, minetest
+-local progressive_mode = mt.setting_getbool("craftguide_progressive_mode")
++local progressive_mode = mt.settings:get_bool("craftguide_progressive_mode")
+ local get_recipe, get_recipes = mt.get_craft_recipe, mt.get_all_craft_recipes
+ local get_result, show_formspec = mt.get_craft_result, mt.show_formspec
+ local reg_items = mt.registered_items
diff --git a/debian/rules b/debian/rules
index 2d33f6a..27341c9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,3 +2,11 @@
 
 %:
 	dh $@
+
+override_dh_auto_build:
+	mkdir textures_fixed
+	cp textures/*.png textures_fixed/
+	mogrify textures_fixed/*.png
+
+override_dh_auto_clean:
+	rm -rf textures_fixed

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/minetest-mod-craftguide.git



More information about the Pkg-games-commits mailing list