gnome-shell-build-setup.sh: work around removal of gpk-install-package-name

gpk-install-package-name was removed in 3.12. Call the D-Bus interface
using gdbus instead.
This commit is contained in:
Owen W. Taylor 2014-05-17 15:10:04 -04:00
parent e070e3c44a
commit c9190294bc

View File

@ -230,7 +230,11 @@ if test "x$system" = xFedora ; then
if test ! "x$missing" = x; then
echo -n "Installing packages ... "
gpk-install-package-name $missing
missing_str=
for pkg in $missing ; do
missing_str="$missing_str${missing_str:+,}\"$pkg\""
done
gdbus call -e -d org.freedesktop.PackageKit -o /org/freedesktop/PackageKit -m org.freedesktop.PackageKit.Modify.InstallPackageNames 0 "[$missing_str]" "hide-finished,show-warnings"
echo "done"
fi
fi