From 049e61927fc9386cbd5341e94c0d22f6e26eda83 Mon Sep 17 00:00:00 2001 From: Radek Vykydal Date: Thu, 23 Jul 2009 17:35:59 +0200 Subject: Log non-upgradable upgrade candidate roots. 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 file changed, 3 insertions(+) diff --git a/storage/__init__.py b/storage/__init__.py index 2370f0ce7..348a15516 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) -- cgit