diff options
author | Olivier Thauvin <nanardon@mandriva.org> | 2006-01-01 01:28:24 +0000 |
---|---|---|
committer | Olivier Thauvin <nanardon@mandriva.org> | 2006-01-01 01:28:24 +0000 |
commit | bcd28b426645e294520813da570f81621142b63f (patch) | |
tree | 79f75fc9f5fe8edf9c6fc309c5b29a93cb7867ce | |
parent | 0d41fbbdeaf1d6d9dcc797a98e38318ac5c60bb4 (diff) | |
download | rpm-setup-bcd28b426645e294520813da570f81621142b63f.tar rpm-setup-bcd28b426645e294520813da570f81621142b63f.tar.gz rpm-setup-bcd28b426645e294520813da570f81621142b63f.tar.bz2 rpm-setup-bcd28b426645e294520813da570f81621142b63f.tar.xz rpm-setup-bcd28b426645e294520813da570f81621142b63f.zip |
- rpm output to stdout if file exists, so we have ignore first output in all case and keep the result only if we are sure rpm exit with 0
-rwxr-xr-x | find-requires.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/find-requires.in b/find-requires.in index 13f9994..2a9bf65 100755 --- a/find-requires.in +++ b/find-requires.in @@ -110,7 +110,9 @@ for f in $scriptlist; do done if [ -n "$interplist" ]; then for i in `echo "$interplist" | tr '[:blank:]' \\\n | sort -u`; do - if ! rpm -qf $i --qf '%{NAME}\n' 2>/dev/null; then + if rpm -qf $i >/dev/null 2>&1; then + rpm -qf $i --qf '%{name}\n' + else echo $i fi done | sort -u | grep -v 'libsafe|libfakeroot' |