RPM Community Forums

Mailing List Message of <rpm-cvs>

[CVS] RPM: xar/ ChangeLog xar/src/ xar.1 xar.c

From: Anders F. Björklund <afb@rpm5.org>
Date: Wed 24 Oct 2007 - 08:40:37 CEST
Message-Id: <20071024064037.9B9F3348454@rpm5.org>
  RPM Package Manager, CVS Repository
  http://rpm5.org/cvs/
  ____________________________________________________________________________

  Server: rpm5.org                         Name:   Anders F. Björklund
  Root:   /v/rpm/cvs                       Email:  afb@rpm5.org
  Module: xar                              Date:   24-Oct-2007 08:40:37
  Branch: HEAD                             Handle: 2007102407403700

  Modified files:
    xar                     ChangeLog
    xar/src                 xar.1 xar.c

  Log:
    add -a option for lzma compression

  Summary:
    Revision    Changes     Path
    1.8         +1  -0      xar/ChangeLog
    1.8         +3  -0      xar/src/xar.1
    1.12        +5  -1      xar/src/xar.c
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: xar/ChangeLog
  ============================================================================
  $ cvs diff -u -r1.7 -r1.8 ChangeLog
  --- xar/ChangeLog	20 Oct 2007 19:08:25 -0000	1.7
  +++ xar/ChangeLog	24 Oct 2007 06:40:37 -0000	1.8
  @@ -1,4 +1,5 @@
   devel
  +	* src/xar.c src/xar.1: Add -a as a synonym for --compression=lzma
   	2007-10-16 Rob Braun bbraun@synack.net
   	* include/xar.h.in src/xar.c lib/io.c lib/lzmaxar.c lib/bzxar.c lib/archive.c lib/zxar.c: Added an option to pass arguments to the compression code.  This to allow specifying compression levels to gzip, bzip2, and lzma.
   	* lib/io.c: Issue 41, fixed a bug where rsize was being used uninitialized.
  @@ .
  patch -p0 <<'@@ .'
  Index: xar/src/xar.1
  ============================================================================
  $ cvs diff -u -r1.7 -r1.8 xar.1
  --- xar/src/xar.1	20 Oct 2007 19:08:26 -0000	1.7
  +++ xar/src/xar.1	24 Oct 2007 06:40:37 -0000	1.8
  @@ -36,6 +36,9 @@
   Specifies the compression type to use.
   Valid values: none, gzip, bzip2, lzma.  Default value: gzip
   .TP
  +\-a
  +Synonym for \-\-compression=lzma
  +.TP
   \-j
   Synonym for \-\-compression=bzip2
   .TP
  @@ .
  patch -p0 <<'@@ .'
  Index: xar/src/xar.c
  ============================================================================
  $ cvs diff -u -r1.11 -r1.12 xar.c
  --- xar/src/xar.c	20 Oct 2007 19:08:26 -0000	1.11
  +++ xar/src/xar.c	24 Oct 2007 06:40:37 -0000	1.12
  @@ -671,6 +671,7 @@
   	fprintf(stderr, "\t--compression    Specifies the compression type to use.\n");
   	fprintf(stderr, "\t                      Valid values: none, gzip, bzip2, lzma\n");
   	fprintf(stderr, "\t                      Default: gzip\n");
  +	fprintf(stderr, "\t-a               Synonym for \"--compression=lzma\"\n");
   	fprintf(stderr, "\t-j               Synonym for \"--compression=bzip2\"\n");
   	fprintf(stderr, "\t-z               Synonym for \"--compression=gzip\"\n");
   	fprintf(stderr, "\t--compression-args=arg Specifies arguments to be passed\n");
  @@ -744,7 +745,7 @@
   		exit(1);
   	}
   
  -	while( (c = getopt_long(argc, argv, "xcvtjzf:hpPln:s:d:vk", o, &loptind)) != -1 ) {
  +	while( (c = getopt_long(argc, argv, "axcvtjzf:hpPln:s:d:vk", o, &loptind)) != -1 ) {
   		switch(c) {
   		case  1 : if( !optarg ) {
   		          	usage(argv[0]);
  @@ -912,6 +913,9 @@
   				List = 1;
   			command = c;
   			break;
  +		case 'a':
  +			Compression = "lzma";
  +			break;
   		case 'j':
   			Compression = "bzip2";
   			break;
  @@ .
Received on Wed Oct 24 08:40:37 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.