Project

General

Profile

« Previous | Next » 

Revision 039cb920

Added by Jim Pingle about 14 years ago

Add a button here to clear the package lock.

View differences:

usr/local/www/diag_backup.php
158 158
		$mode = "restore";
159 159
	else if (stristr($_POST['Submit'], gettext("Reinstall")))
160 160
		$mode = "reinstallpackages";
161
	else if (stristr($_POST['Submit'], gettext("Clear Package Lock")))
162
		$mode = "clearpackagelock";
161 163
	else if (stristr($_POST['Submit'], gettext("Download")))
162 164
		$mode = "download";
163 165
	else if (stristr($_POST['Submit'], gettext("Restore version")))
......
470 472

  
471 473
			header("Location: pkg_mgr_install.php?mode=reinstallall");
472 474
			exit;
475
		} else if ($mode == "clearpackagelock") {
476
			clear_subsystem_dirty('packagelock');
477
			$savemsg = "Package Lock Cleared";
473 478
                } else if ($mode == "restore_ver") {
474 479
			$input_errors[] = gettext("XXX - this feature may hose your config (do NOT backrev configs!) - billm");
475 480
			if ($ver2restore <> "") {
......
655 660
					<td colspan="2" class="list" height="12">&nbsp;</td>
656 661
				</tr>
657 662
				<tr>
658
					<td colspan="2" class="listtopic"><?=gettext("Reinstall packages"); ?></td>
663
					<td colspan="2" class="listtopic"><?=gettext("Package Functions"); ?></td>
659 664
				</tr>
660 665
				<tr>
661 666
					<td width="22%" valign="baseline" class="vncell">&nbsp;</td>
662 667
					<td width="78%" class="vtable">
663 668
						<p><?=gettext("Click this button to reinstall all system packages.  This may take a while."); ?> <br /><br />
664 669
		  				<input name="Submit" type="submit" class="formbtn" id="reinstallpackages" value="<?=gettext("Reinstall packages"); ?>">
670
						<br/>
671
						<br/>
672
						<p><?=gettext("Click this button to clear the package lock if a package fails to reinstall properly after an upgrade."); ?> <br /><br />
673
						<input name="Submit" type="submit" class="formbtn" id="clearpackagelock" value="<?=gettext("Clear Package Lock"); ?>">
665 674
					</td>
666 675
				</tr>
667 676
				<?php } ?>

Also available in: Unified diff