correct hardcoded read in operations/install.py too

This commit is contained in:
Serdar Dalgıç
2009-12-14 13:23:11 +00:00
parent d80b8db663
commit de89e8d435
+5 -5
View File
@@ -157,15 +157,15 @@ def install_pkg_files(package_URIs, reinstall = False):
dfn[name] = x
# check packages' DistributionReleases and Architecture
config = pisi.configfile.ConfigurationFile("/etc/pisi/pisi.conf")
for x in d_t.keys():
pkg = d_t[x]
if pkg.distributionRelease != config.get("general", "distribution_release"):
if pkg.distributionRelease != ctx.config.values.get("general", "distribution_release"):
raise Exception(_('Package %s is not compatible with your distribution release %s %s.') \
% (x, config.get("general", "distribution"), config.get("general", "distribution_release")))
if pkg.architecture != config.get("general", "architecture"):
% (x, ctx.config.values.get("general", "distribution"), \
ctx.config.values.get("general", "distribution_release")))
if pkg.architecture != ctx.config.values.get("general", "architecture"):
raise Exception(_('Package %s (%s) is not compatible with your %s architecture.') \
% (x, pkg.architecture, config.get("general", "architecture")))
% (x, pkg.architecture, ctx.config.values.get("general", "architecture")))
def satisfiesDep(dep):
# is dependency satisfied among available packages