[Bug 1670656] Review Request: grafana - an open source, feature rich metrics dashboard and graph editor

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1670656



--- Comment #35 from Elliott Sales de Andrade <quantum.analyst@xxxxxxxxx> ---
Here's a Lua script that might work:

$ cat arch.lua 
-- Create a set (Lua table) of Go arches  
go_arches = {}
for arch in rpm.expand("%{go_arches}"):gmatch("%S+") do
  go_arches[arch] = 1
end

-- Check for Node.js arches in Go arches
for arch in rpm.expand("%{nodejs_arches}"):gmatch("%S+") do
  if go_arches[arch] then
    print(arch .. " ")
  end
end

$ rpm --eval "%{lua: $(cat arch.lua)}"
i386 i486 i586 i686 pentium3 pentium4 athlon geode x86_64 armv3l armv4b armv4l
armv4tl armv5tl armv5tel armv5tejl armv6l armv6hl armv7l armv7hl armv7hnl
aarch64 ppc64le s390x

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux