summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/package_deb.bbclass12
1 files changed, 9 insertions, 3 deletions
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass
index 309c48da11..2f278009f0 100644
--- a/meta/classes/package_deb.bbclass
+++ b/meta/classes/package_deb.bbclass
@@ -117,12 +117,18 @@ package_install_internal_deb () {
117 fi 117 fi
118 118
119 # normal install 119 # normal install
120 for i in ${package_to_install}; do 120 if [ ! -z "${package_to_install}" ]; then
121 apt-get install $i --force-yes --allow-unauthenticated 121 apt-get install ${package_to_install} --force-yes --allow-unauthenticated
122 if [ $? -ne 0 ]; then 122 if [ $? -ne 0 ]; then
123 exit 1 123 exit 1
124 fi 124 fi
125 done 125
126 # Attempt to correct the probable broken dependencies in place.
127 apt-get -f install
128 if [ $? -ne 0 ]; then
129 exit 1
130 fi
131 fi
126 132
127 rm -f `dirname ${BB_LOGFILE}`/log.do_${task}-attemptonly.${PID} 133 rm -f `dirname ${BB_LOGFILE}`/log.do_${task}-attemptonly.${PID}
128 if [ ! -z "${package_attemptonly}" ]; then 134 if [ ! -z "${package_attemptonly}" ]; then