1 |
commit: 6df1eac93a0dc6f460bb2b38070184e355b35ea0 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 30 22:25:49 2013 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 30 22:25:49 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=6df1eac9 |
7 |
|
8 |
install.py: handle zero file arguments (--help) |
9 |
|
10 |
--- |
11 |
bin/install.py | 2 +- |
12 |
1 file changed, 1 insertion(+), 1 deletion(-) |
13 |
|
14 |
diff --git a/bin/install.py b/bin/install.py |
15 |
index b194941..1f56212 100755 |
16 |
--- a/bin/install.py |
17 |
+++ b/bin/install.py |
18 |
@@ -160,7 +160,7 @@ def copy_xattrs(opts, files): |
19 |
Returns: |
20 |
system exit code |
21 |
""" |
22 |
- if opts.directory: |
23 |
+ if opts.directory or not files: |
24 |
return os.EX_OK |
25 |
|
26 |
if opts.target_directory is None: |