1 |
commit: ecf347fe2bde0f285b04070a13a170accdf73838 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 12 11:26:13 2012 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 12 11:26:13 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=ecf347fe |
7 |
|
8 |
Add --human-readable to rsync opts for bug 269410 |
9 |
|
10 |
--- |
11 |
cnf/make.globals | 2 +- |
12 |
pym/_emerge/actions.py | 1 + |
13 |
2 files changed, 2 insertions(+), 1 deletions(-) |
14 |
|
15 |
diff --git a/cnf/make.globals b/cnf/make.globals |
16 |
index fade448..0f6f541 100644 |
17 |
--- a/cnf/make.globals |
18 |
+++ b/cnf/make.globals |
19 |
@@ -95,7 +95,7 @@ PORTAGE_RSYNC_RETRIES="-1" |
20 |
# Number of seconds rsync will wait before timing out. |
21 |
#RSYNC_TIMEOUT="180" |
22 |
|
23 |
-PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" |
24 |
+PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" |
25 |
|
26 |
# The number of days after the last `emerge --sync` that a warning |
27 |
# message should be produced. |
28 |
|
29 |
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py |
30 |
index 1725053..31d53f9 100644 |
31 |
--- a/pym/_emerge/actions.py |
32 |
+++ b/pym/_emerge/actions.py |
33 |
@@ -2024,6 +2024,7 @@ def action_sync(settings, trees, mtimedb, myopts, myaction): |
34 |
"--whole-file", # Don't do block transfers, only entire files |
35 |
"--delete", # Delete files that aren't in the master tree |
36 |
"--stats", # Show final statistics about what was transfered |
37 |
+ "--human-readable", |
38 |
"--timeout="+str(mytimeout), # IO timeout if not done in X seconds |
39 |
"--exclude=/distfiles", # Exclude distfiles from consideration |
40 |
"--exclude=/local", # Exclude local from consideration |