diff options
author | Radek Vykydal <rvykydal@redhat.com> | 2009-07-23 17:35:59 +0200 |
---|---|---|
committer | Radek Vykydal <rvykydal@redhat.com> | 2009-07-24 14:24:08 +0200 |
commit | 049e61927fc9386cbd5341e94c0d22f6e26eda83 (patch) | |
tree | 8e251c11d21afc57b9e7a17570dd2f1d4dfdac7d /storage/__init__.py | |
parent | 42c3e784927702ffff452837148d02b24740c487 (diff) | |
download | anaconda-049e61927fc9386cbd5341e94c0d22f6e26eda83.tar.gz anaconda-049e61927fc9386cbd5341e94c0d22f6e26eda83.tar.xz anaconda-049e61927fc9386cbd5341e94c0d22f6e26eda83.zip |
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.
Diffstat (limited to 'storage/__init__.py')
-rw-r--r-- | storage/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
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) |