On 14-10-17 01:58 PM, Curtis Hovey wrote:
> I am going to change the rules to accommodate this case. This is
> tricky I think the rule is that when doing a retractions, we need
> to ask if the version being published is new and need to be
> included in the expected differences.
I don't think it's actually that tricky. I think it's something like
added = dict(t for t in new_tools.items() if t[0] not in old_tools)
wrongly_added = dict(t for t in added.items() if t[1][version] != new_version)
removed = dict(t for t in old_tools.items() if t[0] not in new_tools)
if retracted is None:
wrongly_removed = removed
else:
wrongly_removed = dict(t for t in added.items() if t[1][version] != retracted)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 14-10-17 01:58 PM, Curtis Hovey wrote:
> I am going to change the rules to accommodate this case. This is
> tricky I think the rule is that when doing a retractions, we need
> to ask if the version being published is new and need to be
> included in the expected differences.
I don't think it's actually that tricky. I think it's something like
added = dict(t for t in new_tools.items() if t[0] not in old_tools)
if t[1][version] != new_version)
if t[1][version] != retracted)
wrongly_added = dict(t for t in added.items()
removed = dict(t for t in old_tools.items() if t[0] not in new_tools)
if retracted is None:
wrongly_removed = removed
else:
wrongly_removed = dict(t for t in added.items()
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEcBAEBAgAGBQJ UQWVfAAoJEK84cM Ocf+9hk5QIAIk9r RS3YnrPjwSrhsRH B8n9 Z61AbG3nrbESbpH E8R8FVtM5dQL7ch VbhUSi52oFl2CVV S4wBTfX+ /r OwtRIMZ/ ylHSdgjgVcbI0Aa OguP5KevuERWxR3 mXH6pusdX5+ BNdPW54o97T/ MnCh57iRKOFmgWC m5QMktizGkyPAvg pCBwhmx zWLFL7Gn6YS9QHW WbDAvjKp2XqyoDA uKVk3x+ QH5RhFkuQlfB YoCbkBrj4dB6gTc v2pmFW1mHdontpK Jvn2bgcOXK5tKIp YVqQBuw=
FXgZPXTi/
TYViz/bJQOTuAAg
xeaYtCTkkgK2jfc
vaPwjqnFjZUIuN3
luf56rgHhj/
=Sd2G
-----END PGP SIGNATURE-----