[Rpm-maint] [rpm-software-management/rpm] Improve "git am" support. (#854)
Panu Matilainen
notifications at github.com
Wed Oct 9 11:04:53 UTC 2019
pmatilai commented on this pull request.
> +}}
+
+# The list of all sources, or a slice of it
+# -m<min> Include patches with number >= min only
+# -M<max> Include patches with number <= max only
+%sources(m:M:) %{shrink:%{lua:\
+ local low_limit = tonumber(rpm.expand("%{-m:%{-m*}}"))\
+ local high_limit = tonumber(rpm.expand("%{-M:%{-M*}}"))\
+ for i, s in ipairs(sources) do\
+ local inum = source_nums[i]\
+ if ((not low_limit or inum>=low_limit) and (not high_limit or inum<=high_limit)) \
+ then\
+ print(s.." ") \
+ end\
+ end\
+}}
These kinda scream for a common min/max handling function, but might be easier said than done in the macro land.
--
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/854#pullrequestreview-299331354
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20191009/12fee3b0/attachment.html>
More information about the Rpm-maint
mailing list