diff options
author | CoprDistGit <infra@openeuler.org> | 2023-07-21 06:40:39 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-07-21 06:40:39 +0000 |
commit | 81110e15c411188ace2ba06e55c86af2b37b1a49 (patch) | |
tree | caf4d875438d7b69fec463f9ee2bc48c9154acce /drkonqi-installdbgsymbols.patch | |
parent | 4d637b310dbad9b659ef47fae5ef3c4c858af7f2 (diff) |
automatic import of plasma-drkonqiopeneuler23.03
Diffstat (limited to 'drkonqi-installdbgsymbols.patch')
-rw-r--r-- | drkonqi-installdbgsymbols.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/drkonqi-installdbgsymbols.patch b/drkonqi-installdbgsymbols.patch new file mode 100644 index 0000000..25e726e --- /dev/null +++ b/drkonqi-installdbgsymbols.patch @@ -0,0 +1,37 @@ +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 |