Revision 3eafbdf35231e126e251890edb3d4a3657ea5ae3 authored by Mohamed Barakat on 23 March 2017, 16:03:23 UTC, committed by Mohamed Barakat on 23 March 2017, 18:47:33 UTC
this should prepare the CAP rebase, since mathematical properties like IsMonomorphism do not imply data consistency
1 parent c01c948
delete_old_releases.py
import sys
import json
from json import *
package_name=sys.argv[1]
json_data_file=sys.argv[2]
with open(json_data_file) as data_file:
data=json.load(data_file)
number_releases=len(data)
package_releases=[ [ data[i]["id"], data[i]["created_at"] ] for i in range(number_releases) if data[i]["name"].startswith(package_name) ]
package_releases.sort(key=lambda x:x[1])
if len(package_releases) > 2:
package_releases=package_releases[:len(package_releases)-2]
for i in range(len(package_releases)):
print(package_releases[i][0]," ")
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...