From ac6b33b4e5c8ec7cabe082075205466949f5ffe1 Mon Sep 17 00:00:00 2001 From: Suman Chakravartula Date: Mon, 24 Aug 2015 13:53:35 -0700 Subject: [PATCH] support udpates without changelog. --- src/rockstor/system/pkg_mgmt.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/rockstor/system/pkg_mgmt.py b/src/rockstor/system/pkg_mgmt.py index e8544a368..c17d1d162 100644 --- a/src/rockstor/system/pkg_mgmt.py +++ b/src/rockstor/system/pkg_mgmt.py @@ -120,6 +120,14 @@ def update_check(): log = True if (new_version is None): new_version = version + #do a second check which is valid for updates without changelog + #updates. eg: same day updates, testing updates. + o, e, rc = run_command([YUM, 'update', pkg, '--assumeno'], throw=False) + if (rc == 1): + for l in o: + if (re.search('will be an update', l) is not None): + if (re.search('rockstor.x86_64', l) is not None): + new_version = l.strip().split()[3].split(':')[1] return (version, new_version, updates)