Merge pull request #8971 from cvedel/issue_8945

Fix for issue #8945
This commit is contained in:
Thomas S Hatch 2013-12-03 10:07:15 -08:00
commit f4aafb8eb4

View File

@ -27,7 +27,8 @@ def _parse_pkg_meta(path):
'''
def parse_rpm(path):
try:
import collections # needed by _parse_pkginfo, DO NOT REMOVE
global __SUFFIX_NOT_NEEDED # needed by _parse_pkginfo, DO NOT REMOVE
from salt.modules.yumpkg5 import __SUFFIX_NOT_NEEDED
from salt.modules.yumpkg5 import __QUERYFORMAT, _parse_pkginfo
from salt.utils import namespaced_function as _namespaced_function
_parse_pkginfo = _namespaced_function(_parse_pkginfo, globals())