Author: jorda-guest Date: 2009-08-31 06:08:25 +0000 (Mon, 31 Aug 2009) New Revision: 10254
Added: packages/trunk/neverball/debian/patches/lasterror.patch Modified: packages/trunk/neverball/debian/changelog packages/trunk/neverball/debian/patches/series Log: New patch to print error message when VFS init fails Modified: packages/trunk/neverball/debian/changelog =================================================================== --- packages/trunk/neverball/debian/changelog 2009-08-30 23:19:41 UTC (rev 10253) +++ packages/trunk/neverball/debian/changelog 2009-08-31 06:08:25 UTC (rev 10254) @@ -1,3 +1,9 @@ +neverball (1.5.2-2) UNRELEASED; urgency=low + + * debian/patches/lasterror.patch: Print error message when VFS init fails. + + -- Jordà Polo <[email protected]> Mon, 31 Aug 2009 08:05:09 +0200 + neverball (1.5.2-1) unstable; urgency=low * New upstream release. Added: packages/trunk/neverball/debian/patches/lasterror.patch =================================================================== --- packages/trunk/neverball/debian/patches/lasterror.patch (rev 0) +++ packages/trunk/neverball/debian/patches/lasterror.patch 2009-08-31 06:08:25 UTC (rev 10254) @@ -0,0 +1,44 @@ +# Patch to help debug PhysFS init problems: it print last error when VFS +# init fails. It has already been applied upstream. +diff --git a/ball/main.c b/ball/main.c +index 59d8047..5fac1e0 100644 +--- a/ball/main.c ++++ b/ball/main.c +@@ -383,7 +383,8 @@ int main(int argc, char *argv[]) + + if (!fs_init(argv[0])) + { +- fputs("Failure to initialize virtual file system\n", stderr); ++ fprintf(stderr, "Failure to initialize virtual file system: %s\n", ++ fs_error()); + return 1; + } + +diff --git a/putt/main.c b/putt/main.c +index d5d5635..ac08e1c 100644 +--- a/putt/main.c ++++ b/putt/main.c +@@ -196,7 +196,8 @@ int main(int argc, char *argv[]) + + if (!fs_init(argv[0])) + { +- fputs("Failure to initialize virtual file system\n", stderr); ++ fprintf(stderr, "Failure to initialize virtual file system: %s\n", ++ fs_error()); + return 1; + } + +diff --git a/share/mapc.c b/share/mapc.c +index 3117147..ab3b580 100644 +--- a/share/mapc.c ++++ b/share/mapc.c +@@ -2457,7 +2457,8 @@ int main(int argc, char *argv[]) + + if (!fs_init(argv[0])) + { +- fprintf(stderr, "Failure to initialize virtual file system\n"); ++ fprintf(stderr, "Failure to initialize virtual file system: %s\n", ++ fs_error()); + return 1; + } + Modified: packages/trunk/neverball/debian/patches/series =================================================================== --- packages/trunk/neverball/debian/patches/series 2009-08-30 23:19:41 UTC (rev 10253) +++ packages/trunk/neverball/debian/patches/series 2009-08-31 06:08:25 UTC (rev 10254) @@ -1 +1,2 @@ localemodir.patch +lasterror.patch _______________________________________________ Pkg-games-commits mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits

