- Timestamp:
- Jun 16, 2007, 4:52:06 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/essentials/sys-apps/portage/pym/portage.py
r3452 r3453 8250 8250 # clean up any existing portdbapi instances 8251 8251 for myroot in trees: 8252 # bird: see "/" hack below for details. (todo: learn python, this is ugly) 8253 try: 8254 trees[myroot]["this-is-a-reference-or-something"] 8255 continue 8256 except KeyError: 8257 myroot 8252 8258 portdb = trees[myroot]["porttree"].dbapi 8253 8259 portdb.close_caches() 8254 8260 portdbapi.portdbapi_instances.remove(portdb) 8255 8261 del trees[myroot]["porttree"], myroot, portdb 8262 trees = {} # bird: make sure it's empty or the hack below won't work. 8256 8263 8257 8264 settings = config(config_root=config_root, target_root=target_root, … … 8279 8286 binarytree, myroot, mysettings["PKGDIR"], settings=mysettings) 8280 8287 8281 # A hack to work around the assumptions that there is always a "/" entry.8282 # (bin/emerge uses "/" ...)8288 # bird: A hack to work around the assumptions that there is always a 8289 # "/" entry. (bin/emerge uses "/" ...) 8283 8290 if sys.platform == "os2knix" and settings["ROOT"] != "/": 8284 8291 try: … … 8286 8293 except KeyError: 8287 8294 trees["/"] = trees[settings["ROOT"]] 8295 trees["/"]["this-is-a-reference-or-something"] = 1 8288 8296 8289 8297 return trees
Note:
See TracChangeset
for help on using the changeset viewer.