Closed sonaton closed 4 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"
Fix issue https://github.com/tarantool/mkrepo/issues/87
ver="2.7.7" rel="30.el7"
epoch="0" ver="2.7.7" rel="30.el7"
because if epoch="0" => if ver[c] => if 0 => False