Skip to content

Commit

Permalink
Roll back multiple-version support
Browse files Browse the repository at this point in the history
  • Loading branch information
terminalmage committed Dec 10, 2012
1 parent f222cc0 commit 868aa1b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions salt/modules/pkg_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,13 +245,17 @@ def add_pkg(pkgs, name, version):
'''
Add a package to a dict of installed packages.
'''

''' multiple-version support (not yet implemented)
cur = pkgs.get(name)
if cur is None:
pkgs[name] = version
elif isinstance(cur, basestring):
pkgs[name] = [cur, version]
else:
pkgs[name].append(version)
'''
pkgs[name] = version


def sort_pkglist(pkgs):
Expand Down

0 comments on commit 868aa1b

Please sign in to comment.