From 1116b600ff8e23a2268f7ee58d7dd8712e76a984 Mon Sep 17 00:00:00 2001 From: Erki Ferenc Date: Thu, 12 Aug 2010 18:50:21 +0200 Subject: [PATCH 1/2] Fix permissions on *.pyw files Previously the chmod setting *.pyw files executable was after prepgamesdirs, making the files world executable. It has been moved before it to allow prepgamesdirs to do its job. --- packaging/gentoo/current_stable.ebuild | 34 +++++++++++------------ packaging/gentoo/current_testing.ebuild | 34 +++++++++++------------ packaging/gentoo/fpdb-9999.ebuild | 36 ++++++++++++------------- 3 files changed, 52 insertions(+), 52 deletions(-) diff --git a/packaging/gentoo/current_stable.ebuild b/packaging/gentoo/current_stable.ebuild index 7986c092..232c82b2 100644 --- a/packaging/gentoo/current_stable.ebuild +++ b/packaging/gentoo/current_stable.ebuild @@ -34,27 +34,27 @@ RDEPEND=" DEPEND="${RDEPEND}" src_install() { - insinto "${GAMES_DATADIR}"/${PN} - doins -r gfx - doins -r pyfpdb - doins readme.txt + insinto "${GAMES_DATADIR}"/${PN} + doins -r gfx + doins -r pyfpdb + doins readme.txt - exeinto "${GAMES_DATADIR}"/${PN} - doexe run_fpdb.py + exeinto "${GAMES_DATADIR}"/${PN} + doexe run_fpdb.py - dodir "${GAMES_BINDIR}" - dosym "${GAMES_DATADIR}"/${PN}/run_fpdb.py "${GAMES_BINDIR}"/${PN} - - newicon gfx/fpdb-icon.png ${PN}.png - make_desktop_entry ${PN} + dodir "${GAMES_BINDIR}" + dosym "${GAMES_DATADIR}"/${PN}/run_fpdb.py "${GAMES_BINDIR}"/${PN} - prepgamesdirs - chmod +x ${D}/"${GAMES_DATADIR}"/${PN}/pyfpdb/*.pyw + newicon gfx/fpdb-icon.png ${PN}.png + make_desktop_entry ${PN} + + chmod +x "${D}/${GAMES_DATADIR}"/${PN}/pyfpdb/*.pyw + prepgamesdirs } pkg_postinst() { - games_pkg_postinst - elog "Note that if you really want to use mysql or postgresql you will have to create" - elog "the database and user yourself and enter it into the fpdb config." - elog "You can find the instructions on the project's website." + games_pkg_postinst + elog "Note that if you really want to use mysql or postgresql you will have to create" + elog "the database and user yourself and enter it into the fpdb config." + elog "You can find the instructions on the project's website." } diff --git a/packaging/gentoo/current_testing.ebuild b/packaging/gentoo/current_testing.ebuild index b5583fa7..c238e9a3 100644 --- a/packaging/gentoo/current_testing.ebuild +++ b/packaging/gentoo/current_testing.ebuild @@ -34,27 +34,27 @@ RDEPEND=" DEPEND="${RDEPEND}" src_install() { - insinto "${GAMES_DATADIR}"/${PN} - doins -r gfx - doins -r pyfpdb - doins readme.txt + insinto "${GAMES_DATADIR}"/${PN} + doins -r gfx + doins -r pyfpdb + doins readme.txt - exeinto "${GAMES_DATADIR}"/${PN} - doexe run_fpdb.py + exeinto "${GAMES_DATADIR}"/${PN} + doexe run_fpdb.py - dodir "${GAMES_BINDIR}" - dosym "${GAMES_DATADIR}"/${PN}/run_fpdb.py "${GAMES_BINDIR}"/${PN} - - newicon gfx/fpdb-icon.png ${PN}.png - make_desktop_entry ${PN} + dodir "${GAMES_BINDIR}" + dosym "${GAMES_DATADIR}"/${PN}/run_fpdb.py "${GAMES_BINDIR}"/${PN} - prepgamesdirs - chmod +x ${D}/"${GAMES_DATADIR}"/${PN}/pyfpdb/*.pyw + newicon gfx/fpdb-icon.png ${PN}.png + make_desktop_entry ${PN} + + chmod +x "${D}/${GAMES_DATADIR}"/${PN}/pyfpdb/*.pyw + prepgamesdirs } pkg_postinst() { - games_pkg_postinst - elog "Note that if you really want to use mysql or postgresql you will have to create" - elog "the database and user yourself and enter it into the fpdb config." - elog "You can find the instructions on the project's website." + games_pkg_postinst + elog "Note that if you really want to use mysql or postgresql you will have to create" + elog "the database and user yourself and enter it into the fpdb config." + elog "You can find the instructions on the project's website." } diff --git a/packaging/gentoo/fpdb-9999.ebuild b/packaging/gentoo/fpdb-9999.ebuild index 39b88b76..9e5acded 100644 --- a/packaging/gentoo/fpdb-9999.ebuild +++ b/packaging/gentoo/fpdb-9999.ebuild @@ -35,31 +35,31 @@ RDEPEND=" DEPEND="${RDEPEND}" src_unpack() { - git_src_unpack + git_src_unpack } src_install() { - insinto "${GAMES_DATADIR}"/${PN} - doins -r gfx - doins -r pyfpdb - doins readme.txt + insinto "${GAMES_DATADIR}"/${PN} + doins -r gfx + doins -r pyfpdb + doins readme.txt - exeinto "${GAMES_DATADIR}"/${PN} - doexe run_fpdb.py + exeinto "${GAMES_DATADIR}"/${PN} + doexe run_fpdb.py - dodir "${GAMES_BINDIR}" - dosym "${GAMES_DATADIR}"/${PN}/run_fpdb.py "${GAMES_BINDIR}"/${PN} - - newicon gfx/fpdb-icon.png ${PN}.png - make_desktop_entry ${PN} + dodir "${GAMES_BINDIR}" + dosym "${GAMES_DATADIR}"/${PN}/run_fpdb.py "${GAMES_BINDIR}"/${PN} - prepgamesdirs - chmod +x ${D}/"${GAMES_DATADIR}"/${PN}/pyfpdb/*.pyw + newicon gfx/fpdb-icon.png ${PN}.png + make_desktop_entry ${PN} + + chmod +x "${D}/${GAMES_DATADIR}"/${PN}/pyfpdb/*.pyw + prepgamesdirs } pkg_postinst() { - games_pkg_postinst - elog "Note that if you really want to use mysql or postgresql you will have to create" - elog "the database and user yourself and enter it into the fpdb config." - elog "You can find the instructions on the project's website." + games_pkg_postinst + elog "Note that if you really want to use mysql or postgresql you will have to create" + elog "the database and user yourself and enter it into the fpdb config." + elog "You can find the instructions on the project's website." } From 3c28779d019e3f17406e0e1be3c4ea02125d0194 Mon Sep 17 00:00:00 2001 From: Erki Ferenc Date: Fri, 13 Aug 2010 08:35:29 +0200 Subject: [PATCH 2/2] Example hand: unseated player taking actions At PartyPoker if a player sits down to a table after a small blind has been posted but every possible big blinds still not posted (e.g. by new players at the table) then it is possible to not have the player's name in the seat list but he/she can take actions during the hand. --- ...02-0.04-20100811.unseatedPlayerActions.txt | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 pyfpdb/regression-test-files/cash/PartyPoker/Flop/NLHE-USD-0.02-0.04-20100811.unseatedPlayerActions.txt diff --git a/pyfpdb/regression-test-files/cash/PartyPoker/Flop/NLHE-USD-0.02-0.04-20100811.unseatedPlayerActions.txt b/pyfpdb/regression-test-files/cash/PartyPoker/Flop/NLHE-USD-0.02-0.04-20100811.unseatedPlayerActions.txt new file mode 100644 index 00000000..9b04cee0 --- /dev/null +++ b/pyfpdb/regression-test-files/cash/PartyPoker/Flop/NLHE-USD-0.02-0.04-20100811.unseatedPlayerActions.txt @@ -0,0 +1,39 @@ +Game #9521729454 starts. + +#Game No : 9521729454 +***** Hand History for Game 9521729454 ***** +$4 USD NL Texas Hold'em - Wednesday, August 11, 23:21:44 CEST 2010 +Table Table 178011 (Real Money) +Seat 4 is the button +Total number of players : 6/9 +Seat 6: Player1 ( $4 USD ) +Seat 7: Player2 ( $2.92 USD ) +Seat 5: Player3 ( $0.74 USD ) +Seat 3: Player4 ( $4 USD ) +Seat 4: Player5 ( $2.97 USD ) +Seat 8: Player6 ( $2 USD ) +Player3 posts small blind [$0.02 USD]. +Player7 has joined the table. +Player1 posts big blind [$0.04 USD]. +Player2 posts big blind [$0.04 USD]. +Player7 posts big blind [$0.04 USD]. +** Dealing down cards ** +Dealt to Player1 [ Ad 4c ] +marmitt84 has joined the table. +Player2 checks +samvel1976 has joined the table. +Player7 checks +Player5 folds +Player3 calls [$0.02 USD] +Player1 checks +** Dealing Flop ** [ 4h, Tc, 3s ] +Player3 checks +Player1 checks +Player2 checks +Player7 bets [$0.12 USD] +Player3 folds +Player1 folds +Player2 folds +Player7 does not show cards. +Player7 wins $0.28 USD +