From 5cbb2405f4bbd97d4914c251bdb17a59c504cd18 Mon Sep 17 00:00:00 2001 From: marc Date: Thu, 30 Apr 1998 15:20:58 +0000 Subject: [PATCH] include icons in the source packages CVS patchset: 2098 CVS date: 1998/04/30 15:20:58 --- CHANGES | 1 + build/files.c | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/CHANGES b/CHANGES index 76d4a8e..3891a38 100644 --- 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 diff --git a/build/files.c b/build/files.c index 75f70e9..4b19f3a 100644 --- a/build/files.c +++ b/build/files.c @@ -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; -- 2.7.4