enhance slightly %forgemeta to help investigating when it is called in silent mode from another macro
This commit is contained in:
parent
c6cdde1b01
commit
c314c8a285
@ -35,10 +35,11 @@
|
|||||||
# spec variable if it manages to parse it.
|
# spec variable if it manages to parse it.
|
||||||
# -s Silently ignore problems in forgeurl, use it if it can be parsed,
|
# -s Silently ignore problems in forgeurl, use it if it can be parsed,
|
||||||
# ignore it otherwise.
|
# ignore it otherwise.
|
||||||
|
# -p Restore problem handling, override -s.
|
||||||
# -v Be verbose and print every spec variable the macro sets.
|
# -v Be verbose and print every spec variable the macro sets.
|
||||||
# -i Print some info about the state of spec variables the macro may use or
|
# -i Print some info about the state of spec variables the macro may use or
|
||||||
# set at the end of the processing.
|
# set at the end of the processing.
|
||||||
%forgemeta(u:svi) %{lua:
|
%forgemeta(u:spvi) %{lua:
|
||||||
local forgeurl = rpm.expand("%{?-u*}")
|
local forgeurl = rpm.expand("%{?-u*}")
|
||||||
if (forgeurl == "") then
|
if (forgeurl == "") then
|
||||||
forgeurl = rpm.expand("%{?forgeurl}")
|
forgeurl = rpm.expand("%{?forgeurl}")
|
||||||
@ -49,6 +50,9 @@ local informative = false
|
|||||||
if (rpm.expand("%{?-s}") ~= "") then
|
if (rpm.expand("%{?-s}") ~= "") then
|
||||||
silent = true
|
silent = true
|
||||||
end
|
end
|
||||||
|
if (rpm.expand("%{?-p}") ~= "") then
|
||||||
|
silent = false
|
||||||
|
end
|
||||||
if (rpm.expand("%{?-v}") ~= "") then
|
if (rpm.expand("%{?-v}") ~= "") then
|
||||||
verbose = true
|
verbose = true
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user