Merge pull request #43281 from brejoc/fix_for_install_time_rh2

Checking install_time for '(none)' value
This commit is contained in:
Nicole Thomas 2017-08-31 10:19:07 -04:00 committed by GitHub
commit d1e59e752d

View File

@ -104,7 +104,7 @@ def parse_pkginfo(line, osarch=None):
if epoch not in ('(none)', '0'): if epoch not in ('(none)', '0'):
version = ':'.join((epoch, version)) version = ':'.join((epoch, version))
if install_time: if install_time not in ('(none)', '0'):
install_date = datetime.datetime.utcfromtimestamp(int(install_time)).isoformat() + "Z" install_date = datetime.datetime.utcfromtimestamp(int(install_time)).isoformat() + "Z"
install_date_time_t = int(install_time) install_date_time_t = int(install_time)
else: else: