tarantool / mkrepo

Maintain DEB and RPM repositories on S3
70 stars 24 forks source link

bugfix: epoch="0" #89

Closed sonaton closed 4 months ago

sonaton commented 12 months ago

Fix issue https://github.com/tarantool/mkrepo/issues/87

ver = {'ver': '2.7.7', 'rel': '30.el7', 'epoch': 0}
print(  ' '.join(['%s="%s"' % (c, ver[c]) for c in ['epoch', 'ver', 'rel'] if ver[c] ])  )

ver="2.7.7" rel="30.el7"

ver = {'ver': '2.7.7', 'rel': '30.el7', 'epoch': 0}
print(  ' '.join(['%s="%s"' % (c, ver[c]) for c in ['epoch', 'ver', 'rel'] if c in ver])  )

epoch="0" ver="2.7.7" rel="30.el7"

because if epoch="0" => if ver[c] => if 0 => False