Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Allow slicing sources list (Issue #2180)

2023-11-02 Thread Panu Matilainen
Closed #2180 as completed. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/2180#event-10843586067 You are receiving this because you are subscribed to this thread. Message ID: ___ Rpm-maint m

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Allow slicing sources list (Issue #2180)

2023-11-02 Thread Panu Matilainen
Like noted above, there are various ways to achieve this already. If macro arrays (#1825) ever get implemented, then this might become more relevant/feasible. Closing for now though. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/2180

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Allow slicing sources list (Issue #2180)

2023-10-27 Thread Panu Matilainen
Even shorter, using bash arrays: ``` read -r -a SRC <<< "%{sources}" cp -a ${SRC[@]:1} . ``` Technically it'd be possible to add min and max parameters to the %sources and %patches macros similar to %autopatch, but the added complexity doesn't seem warranted here because there are already tools