Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 595393 Details for
Bug 836412
DrKonqi don't install debuginfo packages , when we click on install debug symbols
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
full script
installdbgsymbols.sh (text/plain), 2.64 KB, created by
Rex Dieter
on 2012-06-30 00:49:38 UTC
(
hide
)
Description:
full script
Filename:
MIME Type:
Creator:
Rex Dieter
Created:
2012-06-30 00:49:38 UTC
Size:
2.64 KB
patch
obsolete
>#!/bin/sh ># ># Copyright (C) 2009 George Kiagiadakis <kiagiadakis.george@gmail.com> ># ># This program is free software: you can redistribute it and/or modify ># it under the terms of the GNU General Public License as published by ># the Free Software Foundation, either version 2 of the License, or ># (at your option) any later version. ># ># This program is distributed in the hope that it will be useful, ># but WITHOUT ANY WARRANTY; without even the implied warranty of ># MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ># GNU General Public License for more details. ># ># You should have received a copy of the GNU General Public License ># along with this program. If not, see <http://www.gnu.org/licenses/>. > > ># This function runs a command in a terminal ># The first argument ($1) must be the full command to run. ># It returns 0 if the command finished or 1 if the user closed ># the terminal without waiting for the command to finish. ># The return value of the command is saved in the $exit_status variable. >run_in_terminal() >{ > local fifo=/tmp/drkonqi-fifo-$$ > mkfifo $fifo > > # start terminal > 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 10 > kill -0 $pid 2>/dev/null > done > > # check if terminal has finished succesfully and return the command's exit status > local canceled=0 > if [ -p $fifo ]; then > # terminal was closed before finishing execution > canceled=1 > else > exit_status=`cat $fifo` > #echo "\"$1\" returned: $exit_status" > fi > rm $fifo > return $canceled >} > ># check misc script dependencies >check_dep() >{ > which $1 >/dev/null > if [ "$?" != "0" ]; then > # check for availability of kdialog > which kdialog >/dev/null > if [ "$?" != "0" ]; then > xmessage -center "$1 was not found on your system. Please install $1 and try again." > else > kdialog --sorry "$1 was not found on your system. Please install $1 and try again." > fi > exit 1 > fi >} > >check_dep debuginfo-install >check_dep konsole > ># start searching for packages >packages="" >while [ "$1" != "" ]; >do > package=`rpm -q --whatprovides "$1" --queryformat "%{NAME}"` > packages="$packages $package" > shift >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 debuginfo-install $packages" > >if [ "$?" = "1" ]; then > exit 3 >elif [ "$exit_status" = "0" ]; then > exit 0 >else > exit 1 >fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 836412
: 595393 |
595394