Show all interpreter arguments on --scripts query (ticket #847)
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 12 Sep 2011 09:19:15 +0000 (12:19 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 12 Sep 2011 09:28:58 +0000 (12:28 +0300)
commit9e363dba038ee7b7c8fae330a6931211e61e8678
tree894166b0e7fdb64c6194b67bd55c5ffbb490a068
parent527fa4a730f7457456e381397e89feecbb2ae0af
Show all interpreter arguments on --scripts query (ticket #847)

- Previously any arguments to interpreter were invisible unless
  you happened to know that RPMTAG_FOOPROG are actually string
  arrays despite their type showing plain string, and queried
  as arrays. This makes all the arguments for all scriptlets
  supporting interpreter arguments visible on --scripts query
  and also serves as an example on how to properly query them.i
- Perhaps worth noting is the exact formatting of the query:
  "(using[ %{PRETRANSPROG}]" instead of the more typical style of
  "(using [%{PRETRANSPROG} ]" to avoid extra trailing blanks.
rpmpopt.in