Browse Source

do not check for dependencies

this drastly reduces install time to fake root directory from
68 minutes to 3 minutes on my system. We use the ipkg applet
on target, so this change should be harmful.
Waldemar Brodkorb 13 years ago
parent
commit
ce821e3ab3
1 changed files with 19 additions and 18 deletions
  1. 19 18
      scripts/ipkg

+ 19 - 18
scripts/ipkg

@@ -11,6 +11,7 @@
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 # GNU General Public License for more details.
+#set -x
 
 set -e
 
@@ -752,26 +753,26 @@ ipkg_install_file_dest() {
 	fi
 
 	# Check dependencies
-	local depends="`ipkg_depends $pkg | sed -e "s/\<$pkg\>//"`"
+	#local depends="`ipkg_depends $pkg | sed -e "s/\<$pkg\>//"`"
 
 	# Don't worry about deps that are scheduled for installation
-	local missing_deps=
-	for dep in $depends; do
-		if ! ipkg_status_all $dep | grep -q 'Status:[[:space:]]install'; then
-			missing_deps="$missing_deps $dep"
-		fi
-	done
-
-	if [ ! -z "$missing_deps" ]; then
-		if [ -n "$FORCE_DEPENDS" ]; then
-			echo "ipkg_install_file: Warning: $pkg depends on the following uninstalled programs: $missing_deps"
-		else
-			echo "ipkg_install_file: ERROR: $pkg depends on the following uninstalled programs:
-	$missing_deps"
-			echo "ipkg_install_file: You may want to use \`ipkg install' to install these."
-			return 1
-		fi
-	fi
+	#local missing_deps=
+	#for dep in $depends; do
+	#	if ! ipkg_status_all $dep | grep -q 'Status:[[:space:]]install'; then
+	#		missing_deps="$missing_deps $dep"
+	#	fi
+	#done
+
+	#if [ ! -z "$missing_deps" ]; then
+	#	if [ -n "$FORCE_DEPENDS" ]; then
+	#		echo "ipkg_install_file: Warning: $pkg depends on the following uninstalled programs: $missing_deps"
+	#	else
+	#		echo "ipkg_install_file: ERROR: $pkg depends on the following uninstalled programs:
+	#$missing_deps"
+	#		echo "ipkg_install_file: You may want to use \`ipkg install' to install these."
+	#		return 1
+	#	fi
+	#fi
 
 	mkdir -p $IPKG_TMP/$pkg/control
 	mkdir -p $IPKG_TMP/$pkg/data