let ipkg fail when a package file to be installed is not found

SVN-Revision: 4287
This commit is contained in:
Nicolas Thill 2006-07-26 00:03:05 +00:00
parent 0ad465fc7d
commit af034797ee

View file

@ -923,11 +923,7 @@ ipkg_install() {
ipkg_install_file $ipkg_filename ipkg_install_file $ipkg_filename
;; ;;
*.ipk | *.deb) *.ipk | *.deb)
if [ -f "$pkg" ]; then
ipkg_install_file $pkg ipkg_install_file $pkg
else
echo "File not found $pkg" >&2
fi
;; ;;
*) *)
ipkg_get_install $pkg || true ipkg_get_install $pkg || true