[PC-BSD Commits] r7514 - pcbsd/current/src-qt4/pc-metapkgmanager

svn at pcbsd.org svn at pcbsd.org
Mon Sep 6 08:36:00 PDT 2010


Author: kris
Date: 2010-09-06 08:35:59 -0700 (Mon, 06 Sep 2010)
New Revision: 7514

Modified:
   pcbsd/current/src-qt4/pc-metapkgmanager/pc-metapkgmanager
Log:

Fixed bug in calculating number of meta-pkgs we will install, also redirect more output from pkg_add



Modified: pcbsd/current/src-qt4/pc-metapkgmanager/pc-metapkgmanager
===================================================================
--- pcbsd/current/src-qt4/pc-metapkgmanager/pc-metapkgmanager	2010-09-06 13:03:08 UTC (rev 7513)
+++ pcbsd/current/src-qt4/pc-metapkgmanager/pc-metapkgmanager	2010-09-06 15:35:59 UTC (rev 7514)
@@ -67,10 +67,10 @@
 		# Start installing the packages now
 		if [ "$loc" = "NET" ] ; then
 			PACKAGESITE="$2" ; export PACKAGESITE
-			pkg_add -r "$pkg" 2>/dev/null
+			pkg_add -r "$pkg" >/dev/null 2>/dev/null
 		else
 			cd "${2}"
-			pkg_add "${pkg}.tbz" 2>/dev/null
+			pkg_add "${pkg}.tbz" >/dev/null 2>/dev/null
 		fi
         done < ${MPDIR}/${_apkg}/pkg-list
 	
@@ -227,7 +227,7 @@
 		exit_err "Internal error, must use add/del for parse_metapkgs"
 	fi
 
-	get_num_pkgs "$list"
+	get_num_pkgs "$1"
 	echo "Pending Meta-Package changes: $VAL"
 
  	local list



More information about the Commits mailing list