Fix for issue #8945

This commit is contained in:
Christophe Vedel 2013-12-03 12:36:27 +01:00
parent 449263b5cf
commit 0db02824e5

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())