From fee5c6b77de60e1d79e006e2ab9bb6662724b9d1 Mon Sep 17 00:00:00 2001 From: maniacikarus Date: Fri, 16 Nov 2007 15:42:18 +0000 Subject: [PATCH] corrected pakfire cgi displaying bash color codes updated samba git-svn-id: http://svn.ipfire.org/svn/ipfire/branches/2.1/trunk@1086 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8 --- config/rootfiles/core/1/files | 1 + html/cgi-bin/pakfire.cgi | 20 +++++++++++--------- lfs/samba | 6 +++--- src/initscripts/init.d/ipfireseeder | 4 ++-- 4 files changed, 17 insertions(+), 14 deletions(-) diff --git a/config/rootfiles/core/1/files b/config/rootfiles/core/1/files index 019824f47..74e20ec9c 100644 --- a/config/rootfiles/core/1/files +++ b/config/rootfiles/core/1/files @@ -1,3 +1,4 @@ var/ipfire/langs srv/web/ipfire/cgi-bin/qos.cgi +srv/web/ipfire/cgi-bin/pakfire.cgi opt/pakfire/lib/functions.sh diff --git a/html/cgi-bin/pakfire.cgi b/html/cgi-bin/pakfire.cgi index 28786fa78..dd42375cf 100644 --- a/html/cgi-bin/pakfire.cgi +++ b/html/cgi-bin/pakfire.cgi @@ -65,9 +65,10 @@ if ($pakfiresettings{'ACTION'} eq 'install'){ my @output = `/usr/local/bin/pakfire resolvedeps --no-colors $pakfiresettings{'INSPAKS'}`; print <$Lang::tr{'pakfire install package'}.$pakfiresettings{'INSPAKS'}.$Lang::tr{'pakfire possible dependency'} -
		
+		
 END
 		foreach (@output) {
+		  $_ =~ s/\\[[0-1]\;[0-9]+m//g;
 			print "$_\n";
 		}
 		print <$Lang::tr{'pakfire uninstall package'}.$pakfiresettings{'DELPAKS'}.$Lang::tr{'pakfire possible dependency'}
-		
		
+		
 END
 		foreach (@output) {
+		  $_ =~ s/\\[[0-1]\;[0-9]+m//g;
 			print "$_\n";
 		}
 		print </dev/null");
 
 } elsif ($pakfiresettings{'ACTION'} eq 'upgrade') {
-	
+
 	system("/usr/local/bin/pakfire upgrade -y --no-colors &>/dev/null");
-	
+
 } elsif ($pakfiresettings{'ACTION'} eq "$Lang::tr{'save'}") {
 
 	if ($pakfiresettings{'AUTOUPDATE'} == "on") {
@@ -147,7 +149,7 @@ END
 	} else {
 		system("/usr/local/bin/pakfire disable updates  >/dev/null 2>&1");
 	}
-	
+
 	if ($pakfiresettings{'AUTOUPGRADE'} == "on") {
 		system("/usr/local/bin/pakfire enable upgrades >/dev/null 2>&1");
 	} else {
@@ -242,17 +244,17 @@ END
 					
 					
 				 
-		
+
 		 
 		$Lang::tr{'pakfire available addons'}
 				$Lang::tr{'pakfire installed addons'}
 		
 			

$Lang::tr{'pakfire install description'}

-
+