byobu-select-session never lists sessions

Bug #855795 reported by Scott Moser
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
byobu (Ubuntu)
Fix Released
High
Dustin Kirkland 

Bug Description

It seems like 'screen -ls' returns non-zero in every situation i can see.

revno 1612 on trunk started requiring it to return 0, and that means it never shows sessions in the list.

revno: 1612
committer: Dustin Kirkland <email address hidden>
branch nick: byobu
timestamp: Sat 2011-08-20 11:33:47 -0700
message:
  * usr/bin/byobu-select-session:
    - check exist status of session listing
diff:
=== modified file 'usr/bin/byobu-select-session'
--- usr/bin/byobu-select-session 2011-08-20 17:07:05 +0000
+++ usr/bin/byobu-select-session 2011-08-20 18:33:47 +0000
@@ -33,9 +33,9 @@
        sessions = []
        i = 0
        if commands.getstatusoutput("command -v screen")[0] == 0:
- output = commands.getoutput("screen -ls")
- if output:
- for s in output.split("\n"):
+ output = commands.getstatusoutput("screen -ls")
+ if output[0] == 0:
+ for s in output[1].split("\n"):

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: byobu 4.33-0ubuntu1
ProcVersionSignature: Ubuntu 3.0.0-11.18-generic 3.0.4
Uname: Linux 3.0.0-11-generic x86_64
ApportVersion: 1.23-0ubuntu1
Architecture: amd64
Date: Wed Sep 21 14:11:08 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100318)
PackageArchitecture: all
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_US.UTF-8
SourcePackage: byobu
UpgradeStatus: Upgraded to oneiric on 2010-11-15 (309 days ago)

Revision history for this message
Scott Moser (smoser) wrote :
Changed in byobu (Ubuntu):
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → Dustin Kirkland (kirkland)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package byobu - 4.34-0ubuntu1

---------------
byobu (4.34-0ubuntu1) oneiric; urgency=low

  [ Theodore Campbell ]
  * usr/lib/byobu/.constants: LP: #846576
    - silence errors

  [ Dustin Kirkland ]
  * usr/lib/byobu/.shutil: LP: #854262
    - fix regressed monochrome support
  * usr/bin/byobu-janitor, usr/share/byobu/status/status:
    - proper fix for ec2 by default in cloud instances
  * usr/bin/byobu-select-session: LP: #855795
    - fix broken select-session support; screen -ls exits 1
  * usr/share/byobu/keybindings/f-keys: LP: #839783
    - Disable screen messages while entering and scrolling around in
      copy/scrollback mode, but re-enable them afterward; print a
      message about Byobu scrollback mode to "eat" the unnecessary
      and misleading screen messages when using alt-pgup and alt-pgdown
  * usr/bin/byobu-launch, usr/bin/byobu-launcher-install: LP: #855002
    - ensure that .profile is not sourced more than once
    - ensure that disabled auto launch is respected, too, and does not
      double-source profile
    - handle both system-wide autolaunch, and per-user autolaunch
  * README: LP: #854868
    - document automake steps
 -- Dustin Kirkland <email address hidden> Thu, 08 Sep 2011 14:26:43 -0700

Changed in byobu (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.