mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 22:13:19 -07:00
* usr/lib/byobu/apport: LP: #842113
- fix broken detection of apport bug reports, thanks to lp:~masterpatricko for the suggested fix
This commit is contained in:
parent
788111f2ef
commit
5e3a702d86
2 changed files with 20 additions and 13 deletions
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -11,6 +11,9 @@ byobu (4.33) unreleased; urgency=low
|
||||||
working metadata service might take several minutes for byobu to start
|
working metadata service might take several minutes for byobu to start
|
||||||
while that wget tries repeatedly to reach the metadata service;
|
while that wget tries repeatedly to reach the metadata service;
|
||||||
big thanks to Ben Howard for helping triage and fix ;-)
|
big thanks to Ben Howard for helping triage and fix ;-)
|
||||||
|
* usr/lib/byobu/apport: LP: #842113
|
||||||
|
- fix broken detection of apport bug reports, thanks to lp:~masterpatricko
|
||||||
|
for the suggested fix
|
||||||
|
|
||||||
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 26 Aug 2011 19:07:32 -0500
|
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 26 Aug 2011 19:07:32 -0500
|
||||||
|
|
||||||
|
|
|
@ -20,24 +20,28 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
__apport_detail() {
|
__apport_detail() {
|
||||||
if ls /var/crash/*.crash >/dev/null 2>&1; then
|
for i in /var/crash/*.crash; do
|
||||||
printf "\nTo file bugs on the existing crash reports, run:\n"
|
if [ -f "$i" ]; then
|
||||||
which apport-cli >/dev/null || printf " sudo apt-get install apport\n"
|
printf "\nTo file bugs on the existing crash reports, run:\n"
|
||||||
for i in /var/crash/*.crash; do
|
which apport-cli >/dev/null || printf " sudo apt-get install apport\n"
|
||||||
printf " apport-cli $i\n"
|
for i in /var/crash/*.crash; do
|
||||||
done
|
printf " apport-cli $i\n"
|
||||||
printf "\nTo clear the pending reports:\n"
|
done
|
||||||
printf " rm -f /var/crash/*.crash\n\n"
|
printf "\nTo clear the pending reports:\n"
|
||||||
else
|
printf " rm -f /var/crash/*.crash\n\n"
|
||||||
printf "No pending crash reports\n"
|
return
|
||||||
fi
|
fi
|
||||||
|
done
|
||||||
|
printf "No pending crash reports\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
__apport() {
|
__apport() {
|
||||||
# Print {!} if a /var/crash/*.crash file exists
|
# Print {!} if a /var/crash/*.crash file exists
|
||||||
for i in /var/crash/*.crash; do
|
for i in /var/crash/*.crash; do
|
||||||
color y k; printf "{!}"; color --
|
if [ -f "$i" ]; then
|
||||||
return
|
color y k; printf "{!}"; color --
|
||||||
|
return
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue