summaryrefslogtreecommitdiff
path: root/.gitignore
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2014-02-23 07:35:59 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-02-25 08:03:09 +0000
commitee7b75c895e77ab20f728423c8efc2ced92265e8 (patch)
tree25098dded263aa5c818f3dc1f10a9d195c8e5f5d /.gitignore
parent875d8d076bf7678321b847425590bbe06765bb84 (diff)
downloadopenembedded-core-ee7b75c895e77ab20f728423c8efc2ced92265e8.tar.gz
openembedded-core-ee7b75c895e77ab20f728423c8efc2ced92265e8.tar.bz2
openembedded-core-ee7b75c895e77ab20f728423c8efc2ced92265e8.zip
package_manager.py: correctly handle empty opkg-query-helper.py output
If the output from opkg-query-helper.py is empty, output.split('\n') would result in a list containing one element which is an empty string while iterating over each line in the output. An exception is then thrown by the line: pkg, pkg_file, pkg_arch = line.split() with the message: Exception: ValueError: need more than 0 values to unpack To avoid this, we add a condition to only split the output if it isn't empty. Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions