Merge "diskimage-create.sh: try harder with provides in rpm check"

This commit is contained in:
Jenkins 2015-09-21 08:31:35 +00:00 committed by Gerrit Code Review
commit ba0815ac2f
1 changed files with 3 additions and 1 deletions

View File

@ -303,7 +303,9 @@ is_installed() {
dpkg -s "$1" &> /dev/null
else
# centos, fedora, opensuse, or rhel
rpm -q "$1" &> /dev/null
if ! rpm -q "$1" &> /dev/null; then
rpm -q "$(rpm -q --whatprovides "$1")"
fi
fi
}