Skip to content

Commit

Permalink
scripts/chroot-fixups/rpm-macros.sh: avoid use of /dev/stderr
Browse files Browse the repository at this point in the history
... which results in the following error:

    /var/tmp/rpm-tmp.0DE51f: line 81: /dev/stderr: Permission denied

... while scanning python-flit-3.0.0-3.el9
  • Loading branch information
kdudka committed Feb 16, 2021
1 parent 86776a8 commit 3199a08
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/chroot-fixups/rpm-macros.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

file="/usr/lib/rpm/macros.d/macros.pyproject"
if [ -w ${file} ]; then
(set -x; sed -e 's|> */dev/stderr|>\&2|' -i ${file})
fi

0 comments on commit 3199a08

Please sign in to comment.