From e27953e73a41c644717708c1e7ace02800c7fc4b Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Fri, 1 Feb 2013 11:51:48 +0545 Subject: Allow clear package lock when 1st install fails I upgraded a system this morning. An issue during the 1st package reinstall caused the package lock to be set, but no packages installed. The Backup/Restore GUI page did not show the section for resetting the package lock, because it only displays that if there is at least 1 package installed - catch-22. This fixes that odd condition. --- usr/local/www/diag_backup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php index d84a501..5bc538e 100755 --- a/usr/local/www/diag_backup.php +++ b/usr/local/www/diag_backup.php @@ -736,7 +736,7 @@ function backuparea_change(obj) {



- +   -- cgit v1.1 From b328217211d0fc34097c355b10389493631691ef Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Fri, 1 Feb 2013 13:04:33 +0545 Subject: Display only needed Reinstall and Clear Package Lock buttons Make the code a bit smarter, so the user only sees whichever of the reinstall and clear package lock buttons that are actually relevant. --- usr/local/www/diag_backup.php | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php index 5bc538e..e869fec 100755 --- a/usr/local/www/diag_backup.php +++ b/usr/local/www/diag_backup.php @@ -736,7 +736,7 @@ function backuparea_change(obj) {



- +   @@ -746,12 +746,16 @@ function backuparea_change(obj) {   -



- "> -
-
-



- "> + +



+ "> +
+
+ + +



+ "> + -- cgit v1.1