install.py: handle zero file arguments (--help)
authorZac Medico <zmedico@gentoo.org>
Tue, 30 Jul 2013 22:25:49 +0000 (15:25 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 30 Jul 2013 22:25:49 +0000 (15:25 -0700)
bin/install.py

index b194941b4ef0573a0d0d2569541b9a59ded6463f..1f56212839ff8f880a9cac3febf0c8a6400e09f9 100755 (executable)
@@ -160,7 +160,7 @@ def copy_xattrs(opts, files):
        Returns:
          system exit code
        """
-       if opts.directory:
+       if opts.directory or not files:
                return os.EX_OK
 
        if opts.target_directory is None: