Projet

Général

Profil

« Précédent | Suivant » 

Révision bfe9c9e7

Ajouté par jim-p il y a plus de 9 ans

Move the fetching of a package's config file and additional files to separate functions, and then have the "xml" package button perform these so that it is not only a redundant copy of the "pkg" reinstall button. This can help ensure a package files are in a known-good state before other actions are performed, in case the deinstall would fail or behave erratically due to other files being missing.

Voir les différences:

usr/local/www/pkg_mgr_install.php
226 226
			filter_configure();
227 227
			break;
228 228
		case 'reinstallxml':
229
			pkg_fetch_config_file($pkgid);
230
			pkg_fetch_additional_files($pkgid);
229 231
		case 'reinstallpkg':
230 232
			delete_package_xml($pkgid);
231 233
			if (install_package($pkgid) < 0) {

Formats disponibles : Unified diff