opkg.py: make owner function return value, instead of iterator

Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
This commit is contained in:
Alejandro del Castillo 2018-01-12 09:14:10 -06:00 committed by rallytime
parent 22bcd3d110
commit ae94fb61d9
No known key found for this signature in database
GPG key ID: E8F1A4B90D0DEA19

View file

@ -1042,5 +1042,5 @@ def owner(*paths):
else:
ret[path] = ''
if len(ret) == 1:
return six.itervalues(ret)
return next(six.itervalues(ret))
return ret