make always sure that proper branch metadatum is set

This commit is contained in:
Fabio Erculiani
2009-06-01 00:26:54 +02:00
parent 7e0df7bae4
commit e4603365e2
@@ -1108,6 +1108,9 @@ class Package:
data['injected'] = False
# spm counter will be set in self._install_package_into_spm_database()
data['counter'] = -1
# branch must be always set properly, it could happen it's not
# when installing packages through their .tbz2s
data['branch'] = self.Entropy.SystemSettings['repositories']['branch']
# there is no need to store needed paths into db
if data.get('needed_paths'):
del data['needed_paths']