Skip to content

Commit

Permalink
support udpates without changelog.
Browse files Browse the repository at this point in the history
  • Loading branch information
schakrava committed Aug 24, 2015
1 parent f18e820 commit ac6b33b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/rockstor/system/pkg_mgmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit ac6b33b

Please sign in to comment.