[Rpm-maint] [rpm-software-management/rpm] Add %postbuild section / Allow dynamic sub packages (#1239)

Igor Raits notifications at github.com
Mon May 25 10:00:19 UTC 2020


@ignatenkobrain commented on this pull request.



> +    while (1) {
+	if ((rc = _readLine(spec, 0, 1)) > 0) {
+	    res = PART_NONE;
+	    break;
+	} else if (rc < 0) {
+	    res = PART_ERROR;
+	    break;
+	}
+	if (!strncmp(spec->line, "%%end",  5)) {
+	    spec->line++;
+	    res = PART_EMPTY;
+	    break;
+	}
+	appendStringBufAux(spec->postbuild, spec->line, 0);
+    }
+    printf("XXX\n%s\nXXX\n", getStringBuf(spec->postbuild));

at least I know that you are using good old printf-everywhere when writing new code :D

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1239#pullrequestreview-417602663
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200525/0bc7d551/attachment.html>


More information about the Rpm-maint mailing list