[Rpm-maint] [rpm-software-management/rpm] Regression: addtional output in rpmspec with -q (Issue #3413)

Miroslav Suchý notifications at github.com
Wed Oct 30 01:54:51 UTC 2024


**Describe the bug**
When I run:
```
rpmspec -q --qf '%{license}\n' '--define=_sourcedir .' ~/spdx/cfn-lint/cfn-lint.spec 2>/dev/null
```
on this spec file https://src.fedoraproject.org/rpms/cfn-lint/blob/rawhide/f/cfn-lint.spec

I get:
```
Reading /var/tmp/rpm-tmp.bSC32X
MIT-0 AND MIT
MIT-0 AND MIT
MIT-0 AND MIT
MIT-0 AND MIT
MIT-0 AND MIT
```

which is more lines than expected and contains line that should be on stderr (or not printed at all because of `-q`)

**To Reproduce**
Steps to reproduce the behavior:
1. fedpkg clone cfn-lint
2. cd cfn-lint
3. rpmspec -q --qf '%{license}\n' '--define=_sourcedir .' cfn-lint.spec 2>/dev/null

Please link or attach the packages or spec files involved.

**Expected behavior**

I expected that the line `Reading /var/tmp/rpm-tmp.bSC32X` is not present, because I used `-q` option.
And I would expect the line with the license printed only once.

**Output**


**Environment**
 - Fedora 41
 - rpm-build-4.20.0-1.fc41.x86_64

**Additional context**
I believe this did not happened a week ago (when I used F41 Beta).


-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/3413
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/3413 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20241029/70a4bc8b/attachment-0001.html>


More information about the Rpm-maint mailing list