summaryrefslogtreecommitdiffstats
path: root/installclass.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-02-13 13:13:25 -0500
committerChris Lumens <clumens@redhat.com>2009-02-16 10:59:39 -0500
commit87bf4551dbd14722f8400b973d9dd6f98b16710c (patch)
treeb70a96d28d000557c31541ea0c4cf00d7f9a9133 /installclass.py
parenta395392eca0abb3dfd2d7e66665d0621360c32f0 (diff)
downloadanaconda-87bf4551dbd14722f8400b973d9dd6f98b16710c.tar.gz
anaconda-87bf4551dbd14722f8400b973d9dd6f98b16710c.tar.xz
anaconda-87bf4551dbd14722f8400b973d9dd6f98b16710c.zip
Encode our upgrade policy in productMatches/versionMatches and enforce it.
For Fedora, this means we will not allow upgrades of detected root filesystems more than two releases old, or "upgrading" a newer install with an older one. For RHEL, we don't yet know what to do so just allow things to continue as they always have. Using "upgradeany" still circumvents this check.
Diffstat (limited to 'installclass.py')
-rw-r--r--installclass.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/installclass.py b/installclass.py
index c36e9e9bf..a3a97aed5 100644
--- a/installclass.py
+++ b/installclass.py
@@ -213,6 +213,15 @@ class BaseInstallClass(object):
anaconda.id.reset()
anaconda.id.instClass = self
+ def versionMatches(self, oldver):
+ pass
+
+ def productMatches(self, oldprod):
+ pass
+
+ def productUpgradable(self, oldprod, oldver):
+ return self.productMatches(oldprod) and self.versionMatches(oldver)
+
def __init__(self):
pass