• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

The MinGW.org Installation Manager Tool


Commit MetaInfo

Revision039fbfdedb3720c1a0aed913b7c6fa91fd84262d (tree)
Zeit2013-09-20 05:15:27
AutorKeith Marshall <keithmarshall@user...>
CommiterKeith Marshall

Log Message

Correct LUA_PATH assignment for GUI; (cf. MinGW-Bug #2052)

Ändern Zusammenfassung

Diff

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
11 2013-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
22
3+ Correct LUA_PATH assignment for GUI; (cf. MinGW-Bug #2052)
4+
5+ * src/pkgexec.cpp (LUA_LIBEXEC_PATH): New manifest string; define it.
6+ (init_lua_path) <LUA_PATH>: Use it; add guimain.exe app directory.
7+
8+2013-09-19 Keith Marshall <keithmarshall@users.sourceforge.net>
9+
310 Handle meta-package removal correctly; (cf. MinGW-Bug #2051)
411
512 * src/pkgunst.cpp (pkgRemove) [archive == none]: Ensure the pending
--- a/src/pkgexec.cpp
+++ b/src/pkgexec.cpp
@@ -4,7 +4,7 @@
44 * $Id$
55 *
66 * Written by Keith Marshall <keithmarshall@users.sourceforge.net>
7- * Copyright (C) 2009, 2010, 2011, 2012, 2013, MinGW.org Project
7+ * Copyright (C) 2009-2013, MinGW.org Project
88 *
99 *
1010 * Implementation of package management task scheduler and executive.
@@ -752,12 +752,13 @@ static const char *action_key = "action";
752752 static const char *normal_key = "normal";
753753
754754 static inline __attribute__((__always_inline__)) bool init_lua_path()
755+# define LUA_LIBEXEC_PATH "\\libexec\\mingw-get\\?.lua"
755756 {
756757 /* A one time initialisation hook, to ensure that the built-in Lua script
757758 * interpreter will load scripts from the libexec directory associated with
758759 * the running mingw-get.exe instance.
759760 */
760- putenv( "LUA_PATH=!\\libexec\\mingw-get\\?.lua;!\\..\\libexec\\mingw-get\\?.lua" );
761+ putenv( "LUA_PATH=!\\?.lua;!"LUA_LIBEXEC_PATH";!\\.."LUA_LIBEXEC_PATH );
761762 return true;
762763 }
763764