fix a NameError

This commit is contained in:
lilydjwg 2014-10-16 11:35:52 +08:00
parent 5cb229a26f
commit 57ae4c54f1

View File

@ -21,5 +21,5 @@ def _pkg_done(name, callback, res):
callback(name, None)
return
version = [r['pkgver'] for r in info['results'] if r['repo'] != 'testing'][0]
version = [r['pkgver'] for r in data['results'] if r['repo'] != 'testing'][0]
callback(name, version)