[PATCH] Log non-upgradable upgrade candidate roots.

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

 



This can be helpful in determining the cause of failed upgrade from log.
I used it when working on #499321. Can be kind of corner-case, but can't
hurt.
---
 storage/__init__.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/storage/__init__.py b/storage/__init__.py
index 2370f0c..348a155 100644
--- a/storage/__init__.py
+++ b/storage/__init__.py
@@ -1045,6 +1045,9 @@ def findExistingRootDevices(anaconda, upgradeany=False):
             if upgradeany or \
                anaconda.id.instClass.productUpgradable(product, version):
                 rootDevs.append((device, "%s %s" % (product, version)))
+            else:
+                log.info("product %s version %s found on %s is not upgradable"
+                         % (product, version, device.name))
 
         # this handles unmounting the filesystem
         device.teardown(recursive=True)
-- 
1.6.0.6

_______________________________________________
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