From 6b6c9a29077e628543953ffccf8bcdec7ac907c4 Mon Sep 17 00:00:00 2001 From: jim-p Date: Mon, 7 May 2012 13:09:49 -0400 Subject: Add a way to view the full output from a test patch apply/revert --- config/systempatches/system_patches.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'config/systempatches/system_patches.php') diff --git a/config/systempatches/system_patches.php b/config/systempatches/system_patches.php index 7086f0ca..a10cb0bc 100644 --- a/config/systempatches/system_patches.php +++ b/config/systempatches/system_patches.php @@ -71,8 +71,17 @@ if (($_GET['act'] == "fetch") && ($a_patches[$_GET['id']])) { } if (($_GET['act'] == "test") && ($a_patches[$_GET['id']])) { $savemsg = patch_test_apply($a_patches[$_GET['id']]) ? gettext("Patch can be applied cleanly") : gettext("Patch can NOT be applied cleanly"); + $savemsg .= " (" . gettext("detail") . ")"; $savemsg .= empty($savemsg) ? "" : "
"; $savemsg .= patch_test_revert($a_patches[$_GET['id']]) ? gettext("Patch can be reverted cleanly") : gettext("Patch can NOT be reverted cleanly"); + $savemsg .= " (" . gettext("detail") . ")"; +} +if (($_GET['fulltest']) && ($a_patches[$_GET['id']])) { + if ($_GET['fulltest'] == "apply") { + $fulldetail = patch_test_apply($a_patches[$_GET['id']], true); + } elseif ($_GET['fulltest'] == "revert") { + $fulldetail = patch_test_revert($a_patches[$_GET['id']], true); + } } if (($_GET['act'] == "apply") && ($a_patches[$_GET['id']])) { $savemsg = patch_apply($a_patches[$_GET['id']]) ? gettext("Patch applied successfully") : gettext("Patch could NOT be applied!"); @@ -158,6 +167,12 @@ echo "