72
72
self._cache[translation].marked_delete) and \
73
73
not translation in missing):
74
74
missing.append(translation)
75
trans_package = "language-support-writing-%s" % langInfo.languageCode
76
# we have a langsupport-writing installed, see if we have all of them
77
if (trans_package in self._cache and
78
(self._cache[trans_package].is_installed or \
79
self._cache[trans_package].marked_install or \
80
self._cache[trans_package].marked_upgrade)):
81
#print "IsInstalled: %s " % trans_package
82
#print self._cache.pkg_writing[langInfo.languageCode]
83
if langInfo.languageCode in self._cache.pkg_writing:
84
for (pkg, pull_pkg) in self._cache.pkg_writing[langInfo.languageCode]:
86
# multiple dependencies, if one of them is installed, pull the pull_pkg
87
for p in pkg.split('|'):
88
if self._cache[p] and \
89
(self._cache[p].is_installed or \
90
self._cache[p].marked_install or \
91
self._cache[p].marked_upgrade) and \
92
not self._cache[p].marked_delete and \
93
pull_pkg in self._cache and \
94
((not self._cache[pull_pkg].is_installed and \
95
not self._cache[pull_pkg].marked_install and \
96
not self._cache[pull_pkg].marked_upgrade) or \
97
self._cache[pull_pkg].marked_delete) and \
98
not pull_pkg in missing:
99
missing.append(pull_pkg)
101
if pkg in self._cache and \
102
(self._cache[pkg].is_installed or \
103
self._cache[pkg].marked_install or \
104
self._cache[pkg].marked_upgrade) and \
105
not self._cache[pkg].marked_delete and \
106
pull_pkg in self._cache and \
107
((not self._cache[pull_pkg].is_installed and \
108
not self._cache[pull_pkg].marked_install and \
109
not self._cache[pull_pkg].marked_upgrade) or \
110
self._cache[pull_pkg].marked_delete) and \
111
not pull_pkg in missing:
112
missing.append(pull_pkg)
114
76
# now check for a missing default language support
115
77
default_lang = self._localeinfo.getSystemDefaultLanguage()[0]