RPM Community Forums

Mailing List Message of <rpm-cvs>

[CVS] RPM: rpm-4_5: rpm/ build.c

From: Per Øyvind Karlsen <pkarlsen@rpm5.org>
Date: Sun 09 Dec 2007 - 04:50:52 CET
Message-Id: <20071209035052.0AC94348457@rpm5.org>
  RPM Package Manager, CVS Repository
  http://rpm5.org/cvs/
  ____________________________________________________________________________

  Server: rpm5.org                         Name:   Per Øyvind Karlsen
  Root:   /v/rpm/cvs                       Email:  pkarlsen@rpm5.org
  Module: rpm                              Date:   09-Dec-2007 04:50:52
  Branch: rpm-4_5                          Handle: 2007120903505100

  Modified files:           (Branch: rpm-4_5)
    rpm                     build.c

  Log:
    with tar >= 1.15.91, one needs the --wildcard option to list *.spec
    files (for rpm -ta)

  Summary:
    Revision    Changes     Path
    2.104.2.2   +1  -1      rpm/build.c
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: rpm/build.c
  ============================================================================
  $ cvs diff -u -r2.104.2.1 -r2.104.2.2 build.c
  --- rpm/build.c	9 Jun 2007 15:47:48 -0000	2.104.2.1
  +++ rpm/build.c	9 Dec 2007 03:50:51 -0000	2.104.2.2
  @@ -152,7 +152,7 @@
   	    /* Try again */
   	    (void) pclose(fp);
   
  -	    sprintf(cmd, "%s < %s | tar xOvf - \\*.spec 2>&1 > %s",
  +	    sprintf(cmd, "%s < %s | tar xOvf - --wildcards \\*.spec 2>&1 > %s",
   		    zcmds[res & 0x3], arg, tmpSpecFile);
   	    if (!(fp = popen(cmd, "r"))) {
   		rpmError(RPMERR_POPEN, _("Failed to open tar pipe: %m\n"));
  @@ .
Received on Sun Dec 9 04:50:52 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.