Verified Commit e5113c60 authored by Karel Koci's avatar Karel Koci 🤘
Browse files

Merge tag 'v1.3.3'

Updater Supervisor version 1.3.3

Fixed
* exception raised when "approvals needed" was configured there was
  pending approval
parents a157f5bc d2535532
......@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
- Merged changes from 1.3.3 fixup release
## [1.4.0] - 2020-11-06
### Added
- `msgtrace` module with ability to provide info such as date of last check for
......@@ -20,6 +24,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Disabled autorun now won't prevent from update, you have to use `--autorun` to
get previous behavior
## [1.3.3] - 2020-10-20
### Fixed
- exception raised when "approvals needed" was configured there was pending
approval
## [1.3.2] - 2020-08-17
### Changed
- pkgupdate is now not run with `--task-log`
......
......@@ -147,7 +147,7 @@ def _approved():
with open(const.APPROVALS_STAT_FILE, 'r') as file:
cols = file.readline().split(' ')
auto_grant_time = autorun.auto_approve_time()
if cols[1].strip() == 'granted' or (auto_grant_time > 0 and int(cols[2]) < (time.time() - (auto_grant_time * 3600))):
if cols[1].strip() == 'granted' or (auto_grant_time and int(cols[2]) < (time.time() - (auto_grant_time * 3600))):
return cols[0]
return None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment