install.py: show args if copy_xattrs fails
authorZac Medico <zmedico@gentoo.org>
Tue, 3 Sep 2013 19:43:12 +0000 (12:43 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 3 Sep 2013 19:43:12 +0000 (12:43 -0700)
bin/install.py

index 1f56212839ff8f880a9cac3febf0c8a6400e09f9..2c6dfbe96fd6637eef5ddcd85e13f40ce642d1de 100755 (executable)
@@ -8,6 +8,7 @@ import sys
 import subprocess
 import traceback
 
+import portage
 from portage.util._argparse import ArgumentParser
 from portage.util.movefile import _copyxattr
 from portage.exception import OperationNotSupported
@@ -241,6 +242,10 @@ def main(args):
        returncode = subprocess.call(cmdline)
        if returncode == os.EX_OK:
                returncode = copy_xattrs(opts, files)
+               if returncode != os.EX_OK:
+                       portage.util.writemsg("!!! install: copy_xattrs failed with the "
+                               "following arguments: %s\n" %
+                               " ".join(portage._shell_quote(x) for x in args), noiselevel=-1)
        return returncode