Re: [PATCH] When checking for allowing an upgrade, trim off any "-Alpha" or "-Beta".

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/20/2011 03:40 PM, Chris Lumens wrote:
This means that 15-Beta cannot be used to upgrade F12, but it could be used
to upgrade F14.
---
  pyanaconda/installclasses/fedora.py |    3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/installclasses/fedora.py b/pyanaconda/installclasses/fedora.py
index 3f7243f..1173836 100644
--- a/pyanaconda/installclasses/fedora.py
+++ b/pyanaconda/installclasses/fedora.py
@@ -117,7 +117,8 @@ class InstallClass(BaseInstallClass):
      def versionMatches(self, oldver):
          try:
              oldVer = float(oldver)
-            newVer = float(productVersion)
+            # Trim off any "-Alpha" or "-Beta".
+            newVer = float(productVersion.split('-')[0])
          except ValueError:
              return True


Ack.

Ales

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux