1#!/usr/bin/env python2 2"""Change portions of the object files to good. 3 4The "portion" is defined by the file (which is passed as the only argument to 5this script) content. Every line in the file is an object index, which will be 6set to good (mark as 0). 7""" 8 9from __future__ import print_function 10 11import sys 12 13import common 14 15 16def Main(argv): 17 working_set = common.ReadWorkingSet() 18 object_index = common.ReadObjectIndex(argv[1]) 19 20 for oi in object_index: 21 working_set[int(oi)] = 0 22 23 common.WriteWorkingSet(working_set) 24 25 return 0 26 27 28if __name__ == '__main__': 29 retval = Main(sys.argv) 30 sys.exit(retval) 31