Skip to content

Commit

Permalink
Change to match Valanc pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
dam09fr committed May 16, 2016
1 parent 967de91 commit ab03acf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions inventory/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import sys

def compare_versions(version1, version2):
from distutils.version import LooseVersion, StrictVersion
from distutils.version import StrictVersion, LooseVersion
v1 = version1.encode('ascii', 'ignore')
v2 = version2.encode('ascii', 'ignore')
try:
Expand Down Expand Up @@ -235,7 +235,6 @@ def check_conditions(m,pack):
else:
install = False
status('<Packagestatus><Mid>'+str(m.id)+'</Mid><Pid>'+str(pack.id)+'</Pid><Status>Warning condition: '+escape(condition.name)+'</Status></Packagestatus>')


return install

Expand Down

0 comments on commit ab03acf

Please sign in to comment.