Hi, I’ve started playing around python apt libraries and trying to see if we can have multiple instances of Cache and DepCache available as references living at the same time. I have reinit the DepCache and use that again, but I was looking for comparing the DepCache for different operations performed. Eg: I’m trying to implement something like this: # Setup cache using some set of sources c1 = apt_pkg.Cache() dc1 = apt_pkg.DepCache(c1) dc1.mark_install(pkg1) dc1.mark_install(pkg2) …. # Create a fresh cache again (using different set of aptsources) c2 = apt_pkg.Cache() dc2 = apt_pkg.DepCache(c2) dc2.mark_install(pkg1) dc2.mark_install(pkg2) # Custom build function compare_depcache(c1, c2, dc1, dc2) Thanks Sreeraj |