Merge "diskimage-create.sh: try harder with provides in rpm check"
This commit is contained in:
commit
ba0815ac2f
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user