Merge pull request #1087 from bugchecker/devel

prevent using undefined variable
This commit is contained in:
Toshio Kuratomi 2015-04-13 08:47:51 -07:00
commit 509403a50d

View file

@ -366,7 +366,7 @@ def install_deb(m, debs, cache, force, install_recommends, dpkg_options):
try:
pkg = apt.debfile.DebPackage(deb_file)
except SystemError, e:
m.fail_json(msg="Error: %s\nSystem Error: %s" % (pkg._failure_string,str(e)))
m.fail_json(msg="System Error: %s" % str(e))
# Check if it's already installed
if pkg.compare_to_version_in_cache() == pkg.VERSION_SAME: