include icons in the source packages
authormarc <devnull@localhost>
Thu, 30 Apr 1998 15:20:58 +0000 (15:20 +0000)
committermarc <devnull@localhost>
Thu, 30 Apr 1998 15:20:58 +0000 (15:20 +0000)
CVS patchset: 2098
CVS date: 1998/04/30 15:20:58

CHANGES
build/files.c

diff --git a/CHANGES b/CHANGES
index 76d4a8e..3891a38 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -7,6 +7,7 @@
        - missed a few unlink() when scripts failed
        - freePrefixes wasn't initialized in runScript()
        - fix typo in %triggerpostun generation
+       - include icons in source packages
 
 2.4.108 -> 2.4.109:
         - remove icons with --rmsource
index 75f70e9..4b19f3a 100644 (file)
@@ -116,6 +116,7 @@ int processSourceFiles(Spec spec)
     struct stat sb;
     HeaderIterator hi;
     int tag, type, count;
+    Package pkg;
     void * ptr;
 
     sourceFiles = newStringBuf();
@@ -181,6 +182,19 @@ int processSourceFiles(Spec spec)
        srcPtr = srcPtr->next;
     }
 
+    pkg = spec->packages;
+    while (pkg) {
+       srcPtr = pkg->icon;
+       while (srcPtr) {
+           sprintf(buf, "%s%s/%s",
+                   srcPtr->flags & RPMBUILD_ISNO ? "!" : "",
+                   rpmGetVar(RPMVAR_SOURCEDIR), srcPtr->source);
+           appendLineStringBuf(sourceFiles, buf);
+           srcPtr = srcPtr->next;
+       }
+       pkg = pkg->next;
+    }
+
     spec->sourceCpioList = NULL;
     spec->sourceCpioCount = 0;