Project

General

Profile

« Previous | Next » 

Revision 27018d3c

Added by Ermal LUÇI almost 14 years ago

Add yet another intermediate config write during pacakge processing which breaks some installation steps.

View differences:

etc/inc/filter.inc
551 551

  
552 552
	$aliases .= "#pfSnortSam tables\n";
553 553
	$aliases .= "table <snort2c>\n";
554
	$aliases .= "table <pfSnortSamout>\n";
555
	$aliases .= "table <pfSnortSamin>\n";
556 554

  
557 555
	$aliases .= "\ntable <virusprot>\n";
558 556

  
etc/inc/pkg-utils.inc
599 599
		write_config($changedesc);
600 600
		$static_output .= gettext("done.") . "\n";
601 601
		update_output_window($static_output);
602
		update_output_window($static_output);
603 602
		if($pkg_info['after_install_info']) 
604 603
			update_output_window($pkg_info['after_install_info']);	
605 604
	}
......
764 763
					foreach($config['installedpackages']['menu'] as $amenu)
765 764
						if($amenu['name'] == $menu['name'])
766 765
							continue 2;
766
				else
767
					$config['installedpackages']['menu'] = array();
767 768
				$config['installedpackages']['menu'][] = $menu;
768 769
			}
769 770
			$static_output .= gettext("done.") . "\n";
......
778 779
					foreach($config['installedpackages']['tab'] as $atab)
779 780
						if($atab['name'] == $tab['name'])
780 781
							continue 2;
782
				else
783
					$config['installedpackages']['tab'] = array();
781 784
				$config['installedpackages']['tab'][] = $tab;
782 785
			}
783 786
			$static_output .= gettext("done.") . "\n";
......
792 795
					foreach($config['installedpackages']['service'] as $aservice)
793 796
						if($aservice['name'] == $service['name'])
794 797
							continue 2;
798
				else
799
					$config['installedpackages']['service'] = array();
795 800
				$config['installedpackages']['service'][] = $service;
796 801
			}
797 802
			$static_output .= gettext("done.") . "\n";
798 803
			update_output_window($static_output);
799 804
		}
805
		/* XXX: Seems there are issues with packages doing things */
806
		write_config("Intermediate config write during package install for {$pkg_info['name']}");
800 807
		/* custom commands */
801 808
		$static_output .= gettext("Custom commands...") . "\n";
802 809
		update_output_window($static_output);

Also available in: Unified diff