# HG changeset patch # User Thinker K.F. Li # Date 1307022649 -28800 # Node ID a57ec6a76fe386e8ef289398dc9ee72f1931bed5 # Parent fff40aabefab536a640c6959a30afabb6ca539bd Describe steps to track dependencies diff -r fff40aabefab -r a57ec6a76fe3 paraspace/dex_deptracker.py --- a/paraspace/dex_deptracker.py Thu Jun 02 16:53:12 2011 +0800 +++ b/paraspace/dex_deptracker.py Thu Jun 02 21:50:49 2011 +0800 @@ -80,11 +80,25 @@ return all_deps +def _install_uid_marker(all_deps): + for from_path, dep in all_deps.items(): + dep_type = dep[0] + if issubclass(dep_type, dexfile.depend_off): + # install offset marker + pass + # install uid marker + pass + pass -def _install_offset_keepers(): - + +def _link_dependencies(): pass + +def _sync_dependencies(): + pass + + if __name__ == '__main__': dex = dexfile.DEXFile.open('../data/testdata1.dex') diff -r fff40aabefab -r a57ec6a76fe3 paraspace/dexfile.py --- a/paraspace/dexfile.py Thu Jun 02 16:53:12 2011 +0800 +++ b/paraspace/dexfile.py Thu Jun 02 21:50:49 2011 +0800 @@ -1419,9 +1419,4 @@ map.size, map.offset) pass - - import pprint - print - print 'Dependencies' - pprint.pprint(collect_dependencies()) pass