summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Väth <martin@mvath.de>2012-12-27 08:34:06 +0100
committerMartin Väth <martin@mvath.de>2015-10-11 10:48:34 +0200
commit2d1149f9a2466959586a9fa236c3b20e427aa5c3 (patch)
tree490387facbb47a0f2cff56c65abfa9de3a6d6d15 /sys-fs/squashfs-tools/files
parentBump zsh (diff)
downloadmv-2d1149f9a2466959586a9fa236c3b20e427aa5c3.tar.gz
mv-2d1149f9a2466959586a9fa236c3b20e427aa5c3.tar.bz2
mv-2d1149f9a2466959586a9fa236c3b20e427aa5c3.zip
Bump squashfs-tools
Diffstat (limited to 'sys-fs/squashfs-tools/files')
-rw-r--r--sys-fs/squashfs-tools/files/squashfs-tools-4.2_p20121216-progress-stderr.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/sys-fs/squashfs-tools/files/squashfs-tools-4.2_p20121216-progress-stderr.patch b/sys-fs/squashfs-tools/files/squashfs-tools-4.2_p20121216-progress-stderr.patch
new file mode 100644
index 00000000..09d53d68
--- /dev/null
+++ b/sys-fs/squashfs-tools/files/squashfs-tools-4.2_p20121216-progress-stderr.patch
@@ -0,0 +1,29 @@
+--- progressbar.bak/progressbar.c
++++ progressbar.bak/progressbar.c
+@@ -119,19 +119,19 @@
+ previous = current;
+ }
+
+- printf("\r[");
++ fprintf(stderr, "\r[");
+
+ while (hashes --)
+- putchar('=');
++ putc('=', stderr);
+
+- putchar(rotate_list[rotate]);
++ putc(rotate_list[rotate], stderr);
+
+ while(spaces --)
+- putchar(' ');
++ putc(' ', stderr);
+
+- printf("] %*lld/%*lld", max_digits, current, max_digits, max);
+- printf(" %3lld%%", current * 100 / max);
+- fflush(stdout);
++ fprintf(stderr, "] %*lld/%*lld", max_digits, current, max_digits, max);
++ fprintf(stderr, " %3lld%%", current * 100 / max);
++ fflush(stderr);
+ }
+
+