diff options
| author | Pascal Terjan <pterjan@mageia.org> | 2025-03-24 19:41:27 +0000 |
|---|---|---|
| committer | Pascal Terjan <pterjan@mageia.org> | 2025-03-24 19:41:27 +0000 |
| commit | 59d7c30435f20597d410d4ba79639ce67ad2adfa (patch) | |
| tree | 5da51288ad740caf34a7970d23c9041d54b44df7 /iurt_root_command | |
| parent | baee8fd172f2996b361ad68002476a7460f3e406 (diff) | |
| download | iurt-59d7c30435f20597d410d4ba79639ce67ad2adfa.tar iurt-59d7c30435f20597d410d4ba79639ce67ad2adfa.tar.gz iurt-59d7c30435f20597d410d4ba79639ce67ad2adfa.tar.bz2 iurt-59d7c30435f20597d410d4ba79639ce67ad2adfa.tar.xz iurt-59d7c30435f20597d410d4ba79639ce67ad2adfa.zip | |
Iurt: Fix getting srpm when stdout is polluted
If parsing the spec causes something to be printed, it ends up in stdout
together with the result of the query:
rpmspec -q --qf %{NVR}.src.rpm --srpm SPECS/golang-x-vuln.spec 2>/dev/null
Setting %{thisgofilelist} = devel.file-list
Setting %{currentgoipath} = golang.org/x/vuln
Setting %{currentgosourcedir} = /home/pterjan/rpmbuild/BUILD/golang-x-vuln-1.1.4-build/vuln-1.1.4
Setting %{currentgofilelist} = devel.file-list
Setting %{currentversion} = 1.1.4
Setting %{currentgoldflags} = -X golang.org/x/vuln/version=1.1.4
golang-x-vuln-1.1.4-1.mga10.src.rpm
Work around this by keeping only the last line
Diffstat (limited to 'iurt_root_command')
0 files changed, 0 insertions, 0 deletions
