Changeset 3429 for trunk


Ignore:
Timestamp:
Jun 14, 2007, 4:04:34 AM (18 years ago)
Author:
bird
Message:

UNC.

File:
1 edited

Legend:

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

    r3418 r3429  
    3636        os.path.normpath("//foo") returns "//foo" instead of "/foo"
    3737        We dislike this behavior so we create our own normpath func
    38         to fix it.
     38        to fix it.
     39        This doesn't apply to OS/2 kNIX where "//foo/bar" differs
     40        from "/foo/bar" in that the former is a UNC path while the
     41        later is a local path.
    3942        """
    40         if mypath.startswith(os.path.sep):
     43        if mypath.startswith(os.path.sep) and sys.platform != "os2knix":
    4144                # posixpath.normpath collapses 3 or more leading slashes to just 1.
    4245                return os.path.normpath(2*os.path.sep + mypath)
Note: See TracChangeset for help on using the changeset viewer.