[Rpm-maint] [rpm-software-management/rpm] Warn if %else is after %else (#649)

pavlinamv notifications at github.com
Tue May 14 13:13:04 UTC 2019


pavlinamv commented on this pull request.



> @@ -462,6 +430,16 @@ int readLine(rpmSpec spec, int strip)
     lineType = parseLineType(s);
     if (!lineType)
 	goto after_classification;
+
+    /* for a conditional check its ordering */
+    if (lineType->isConditional &&
+	(spec->readStack->lastConditional->id & lineType->wrongPrecursors)) {
+	rpmlog(RPMLOG_ERR,_("%s:%d: Got %%%s %s\n"),

Removed in the new version.

-- 
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/649#discussion_r283789969
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190514/3c261e8a/attachment.html>


More information about the Rpm-maint mailing list