Project

General

Profile

« Previous | Next » 

Revision 550fea7a

Added by Scott Ullrich over 14 years ago

Do not unlink file, it's handled by behind the scenes pkg-utils.inc code

View differences:

etc/inc/pkg-utils.inc
814 814

  
815 815
	$pkg = substr(reverse_strrchr($pkg, "."), 0, -1);
816 816

  
817

  
818 817
	if (file_exists("{$vardb}/{$pkg}/+REQUIRED_BY") && count(file("{$vardb}/{$pkg}/+REQUIRED_BY")) > 0) {
819 818
		$static_output .= "Skipping package deletion for {$pkg} because it is required by other packages.\n";
820 819
		update_output_window($static_output);
etc/rc.bootup
387 387
		require_once("pkg-utils.inc");
388 388
		if($g['platform'] == "pfSense" || $g['platform'] == "nanobsd") {
389 389
			pkg_reinstall_all();
390
			unlink('/conf/needs_package_sync');
391 390
		}
392 391
	}
393 392
}

Also available in: Unified diff