[Rpm-maint] [rpm-software-management/rpm] RFE: add variable scoping to rpm (#1150)

nim-nim notifications at github.com
Tue Mar 31 10:50:53 UTC 2020


Right now a lot of things need special tags in rpm just because they have a specific (usual subpackage) scope, and can be declared in multiple scopes

Please add a generic construct to specify the scope of a set of variable, so those special Tag constructs can be ultimately replaced by easy to manipulate bog standard rpm variables

IE something like

```rpm
%{scope(name):
# every variable get or set within this scope applies to the scope only
# the same variable may exist with the same name in a different scope
}
```
scopes should nest: setting a variable sets it for the inner scope, reading a variable cascades from the inner to the outer scope, till it finds a value for the variable name

-- 
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/issues/1150
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200331/43811ed6/attachment-0001.html>


More information about the Rpm-maint mailing list