drkonqi/drkonqi-5.26.5-installdbgsymbols.patch

38 lines
1.1 KiB
Diff
Raw Normal View History

diff --git a/src/doc/examples/installdbgsymbols_fedora.sh b/src/doc/examples/installdbgsymbols_fedora.sh
index 4a1254a..7ac3f91 100644
--- a/src/doc/examples/installdbgsymbols_fedora.sh
+++ b/src/doc/examples/installdbgsymbols_fedora.sh
@@ -27,12 +27,12 @@ run_in_terminal()
mkfifo $fifo
# start terminal
- konsole -e sh -c "echo \$\$ > $fifo; $1; exit_status=\$?; sleep 1; rm $fifo; echo \$exit_status > $fifo" &
+ konsole -e sh -c "echo \$\$ > $fifo; set -x ; $1; exit_status=\$?; sleep 10; rm $fifo; echo \$exit_status > $fifo" &
# wait for it to finish
local pid=`cat $fifo`
while [ "$?" = "0" ]; do
- sleep 1
+ sleep 10
kill -0 $pid 2>/dev/null
done
@@ -65,7 +65,7 @@ check_dep()
fi
}
-check_dep debuginfo-install
+# check_dep debuginfo-install
check_dep konsole
# start searching for packages
@@ -80,7 +80,7 @@ done
# filter out duplicates
packages=`echo "$packages" | tr " " "\n" | sort | uniq | tr "\n" " "`
-run_in_terminal "su -c \"debuginfo-install $packages\""
+run_in_terminal "pkexec dnf debuginfo-install $packages"
if [ "$?" = "1" ]; then
exit 3