Changeset 3431 for trunk


Ignore:
Timestamp:
Jun 15, 2007, 2:05:57 AM (18 years ago)
Author:
bird
Message:

ROOT isn't / on kNIX, emerge and others assume it is.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/essentials/sys-apps/portage/pym/portage.py

    r3430 r3431  
    82848284                trees[myroot].addLazySingleton("bintree",
    82858285                        binarytree, myroot, mysettings["PKGDIR"], settings=mysettings)
     8286
     8287        # A hack to work around the assumptions that there is always a "/" entry.
     8288        # (bin/emerge uses "/" ...)
     8289        if sys.platform == "os2knix" and settings["ROOT"] != "/":
     8290                try:
     8291                        trees["/"]
     8292                except KeyError:
     8293                        trees["/"] = trees[settings["ROOT"]]
     8294
    82868295        return trees
    82878296
Note: See TracChangeset for help on using the changeset viewer.