Gentoo Archives: gentoo-commits

From: "Dror Levin (spatz)" <spatz@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-arch/pbzip2/files: pbzip2-1.0.5-fix-stdout-optparse.patch pbzip2-1.0.2-uclibc.patch pbzip2-1.0.3-uclibc.patch
Date: Tue, 09 Feb 2010 20:03:19
Message-Id: E1NewIj-0004A2-OB@stork.gentoo.org
1 spatz 10/02/09 20:03:13
2
3 Added: pbzip2-1.0.5-fix-stdout-optparse.patch
4 Removed: pbzip2-1.0.2-uclibc.patch pbzip2-1.0.3-uclibc.patch
5 Log:
6 Add patch to fix command line handling, bug 302757. Clean old patches.
7 (Portage version: 2.2_rc62/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 app-arch/pbzip2/files/pbzip2-1.0.5-fix-stdout-optparse.patch
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/pbzip2/files/pbzip2-1.0.5-fix-stdout-optparse.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/pbzip2/files/pbzip2-1.0.5-fix-stdout-optparse.patch?rev=1.1&content-type=text/plain
14
15 Index: pbzip2-1.0.5-fix-stdout-optparse.patch
16 ===================================================================
17 --- pbzip2-1.0.5-orig/pbzip2.cpp 2009-01-08 23:08:17.000000000 +0200
18 +++ pbzip2-1.0.5/pbzip2.cpp 2010-01-29 20:09:22.031524677 +0200
19 @@ -2254,7 +2254,7 @@
20 FileList[FileListCount] = stdinFile;
21 FileListCount++;
22 }
23 - else if (OutputStdOut == 1)
24 + else if ((decompress == 0) || (OutputStdOut == 1))
25 {
26 #ifndef WIN32
27 if (isatty(fileno(stdout)))
28 @@ -2269,6 +2269,7 @@
29 // expecting data from stdin
30 FileList[FileListCount] = stdinFile;
31 FileListCount++;
32 + OutputStdOut = keep = 1;
33 }
34 else if ((decompress == 1) && (argc == 2))
35 {