Add back support for silent definition of the dummy lchown()
authorZac Medico <zmedico@gentoo.org>
Sat, 29 Dec 2007 12:14:27 +0000 (12:14 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 29 Dec 2007 12:14:27 +0000 (12:14 -0000)
function when ostype == Darwin.

svn path=/main/trunk/; revision=9101

pym/portage/data.py

index a3dbfb8853283c5b9e6cc9402fb957ff342f97a6..5fc811e43d356d7f4122de21be3212d4bb5cebeb 100644 (file)
@@ -19,6 +19,10 @@ else:
 lchown = getattr(os, "lchown", None)
 
 if not lchown:
+       if ostype == "Darwin":
+               def lchown(*pos_args, **key_args):
+                       pass
+       else:
                try:
                        import missingos
                        lchown = missingos.lchown