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
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to