]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- fixed, and added possiblity to mark file as %exclude before real entry
authorfilon <filon@sokrates.mimuw.edu.pl>
Mon, 27 May 2002 20:19:47 +0000 (20:19 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-exclude.patch -> 1.2

rpm-exclude.patch

index c9f3d6281bbc9500f9d8b9d8b1e1b4ad1535a30a..b39d709d38061b5be090a90f9281776009687037 100644 (file)
@@ -19,7 +19,7 @@
        { "%readme",    RPMFILE_README },
        { "%license",   RPMFILE_LICENSE },
        { "%multilib",  0 },
-@@ -986,12 +987,16 @@
+@@ -986,12 +987,20 @@
      clp = *cpioList = xmalloc(sizeof(**cpioList) * fl->fileListRecsUsed);
  
      for (flp = fl->fileList, count = fl->fileListRecsUsed; count > 0; flp++, count--) {
 -              flp->fileURL);
 -          fl->processingFailed = 1;
 -      }
-+      if ((count > 1) && !strcmp(flp->fileURL, flp[1].fileURL))
-+          if (!(flp[1].flags & RPMFILE_EXCLUDE)) {
++      if ((count > 1) && !strcmp(flp->fileURL, flp[1].fileURL)) {
++          if (!((flp->flags | flp[1].flags) & RPMFILE_EXCLUDE)) {
 +              rpmError(RPMERR_BADSPEC, _("File listed twice: %s\n"),
 +                  flp->fileURL);
 +              fl->processingFailed = 1;
++          } else {
++              flp->flags |= RPMFILE_EXCLUDE;
++              flp[1].flags |= RPMFILE_EXCLUDE;
 +          }
++      }
  
 +      /* Skip files that were marked with %exclude. */
 +      if (flp->flags & RPMFILE_EXCLUDE) continue;
This page took 0.0403 seconds and 4 git commands to generate.