~ubuntu-branches/ubuntu/oneiric/byobu/oneiric

« back to all changes in this revision

Viewing changes to usr/lib/byobu/apport

  • Committer: Package Import Robot
  • Author(s): Dustin Kirkland
  • Date: 2011-08-26 19:07:32 UTC
  • mfrom: (1.1.134 upstream)
  • Revision ID: package-import@ubuntu.com-20110826190732-zih8xusxv7vbrkww
Tags: 4.33-0ubuntu1
* usr/lib/byobu/updates_available:
  - localize variables
  - save a fork
  - fix detection of updates, which only worked when there were security
    updates
* usr/lib/byobu/.shutil: LP: #844994
  - the wget --timeout=1 was not working as desired, without the --tries=1
    option too; so local boots of ubuntu ec2 images that don't have a
    working metadata service might take several minutes for byobu to start
    while that wget tries repeatedly to reach the metadata service;
    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
* etc/byobu/backend, usr/bin/byobu, usr/lib/byobu/.common,
  usr/lib/byobu/.dirs, usr/share/byobu/status/status,
  usr/share/man/man1/byobu.1: LP: #836090
  - fix handling of byobu backend (screen|tmux) handling; thanks to
    lp:~zorun-42 for the fix
* usr/lib/byobu/swap: LP: #843446
  - make swap status behave like disk and memory (display usage even if
    zero)

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
21
21
 
22
22
__apport_detail() {
23
 
        if ls /var/crash/*.crash >/dev/null 2>&1; then
24
 
                printf "\nTo file bugs on the existing crash reports, run:\n"
25
 
                which apport-cli >/dev/null || printf "  sudo apt-get install apport\n"
26
 
                for i in /var/crash/*.crash; do
27
 
                        printf "  apport-cli $i\n"
28
 
                done
29
 
                printf "\nTo clear the pending reports:\n"
30
 
                printf "  rm -f /var/crash/*.crash\n\n"
31
 
        else
32
 
                printf "No pending crash reports\n"
33
 
        fi
 
23
        for i in /var/crash/*.crash; do
 
24
                if [ -f "$i" ]; then
 
25
                        printf "\nTo file bugs on the existing crash reports, run:\n"
 
26
                        which apport-cli >/dev/null || printf "  sudo apt-get install apport\n"
 
27
                        for i in /var/crash/*.crash; do
 
28
                                printf "  apport-cli $i\n"
 
29
                        done
 
30
                        printf "\nTo clear the pending reports:\n"
 
31
                        printf "  rm -f /var/crash/*.crash\n\n"
 
32
                        return
 
33
                fi
 
34
        done
 
35
        printf "No pending crash reports\n"
34
36
}
35
37
 
36
38
__apport() {
37
39
        # Print {!} if a /var/crash/*.crash file exists
38
40
        for i in /var/crash/*.crash; do
39
 
                color y k; printf "{!}"; color --
40
 
                return
 
41
                if [ -f "$i" ]; then
 
42
                        color y k; printf "{!}"; color --
 
43
                        return
 
44
                fi
41
45
        done
42
46
}
43
47