[entropy.client.interfaces.dep] when validating cache, make sure that m_id is int type

This commit is contained in:
Fabio Erculiani
2010-04-09 19:28:24 +02:00
parent 573ae2f684
commit 5c849a8cb9
@@ -179,6 +179,8 @@ class CalculatorsMixin:
# ((14479, '4.4.2', '', 0), 'sabayonlinux.org')
m_id, m_repo = cached_obj[0][0], cached_obj[1]
m_db = self.open_repository(m_repo)
if not const_isnumber(m_id):
return None
if not m_db.isIdpackageAvailable(m_id):
return None