release: handle Debian when lsb_release is absent better

Bug #674275 reported by Daniel Hahler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
byobu (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: byobu

In case lsb_release is not installed, Debian testing gets detected as "Debian \l" currently (sed "s/ [^0-9]* / /" removes the squeeze/sid part).

I've noticed that there's a file /etc/debian_version, which should just get used instead.

IMHO this would make sense before "lsb_release" already (which is rather slow AFAIK), but I've put it below as fallback.

While the "lsb_release" method will result in "Debian testing", /etc/debian_version says "squeeze/sid" (resulting in "Debian squeeze/sid"). This is fine for me though.
This might be related to testing being frozen currently?!

Daniel Hahler (blueyed)
description: updated
Changed in byobu (Ubuntu):
status: New → Fix Committed
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

---------------
byobu (3.9-0ubuntu1) natty; urgency=low

  * debian/templates, etc/byobu/statusrc, usr/bin/byobu, usr/bin/byobu-
    config, usr/bin/byobu-janitor, usr/bin/byobu-launcher,
    usr/bin/byobu-launcher-install, usr/bin/byobu-launcher-uninstall,
    usr/bin/byobu-select-profile, usr/bin/byobu-status,
    usr/lib/byobu/custom, usr/lib/byobu/disk_io, usr/lib/byobu/ec2_cost,
    usr/lib/byobu/hostname, usr/lib/byobu/ip_address,
    usr/lib/byobu/logo, usr/lib/byobu/mem_available, usr/lib/byobu/menu,
    usr/lib/byobu/network, usr/lib/byobu/.notify_osd,
    usr/lib/byobu/reboot_required, usr/lib/byobu/services,
    usr/lib/byobu/updates_available, usr/share/byobu/keybindings/f-keys,
    usr/share/byobu/keybindings/screen-escape-keys,
    usr/share/byobu/profiles/byoburc, usr/share/byobu/profiles/common,
    usr/share/man/man1/byobu.1: clean up the broken xdg changes,
    maintain both the xdg dir and a symlink for now; LP: #674217
  * usr/lib/byobu/release: use /etc/issue first, much, much faster,
    thanks to the suggestion from Daniel Hahler, LP: #674275
 -- Dustin Kirkland <email address hidden> Wed, 10 Nov 2010 18:29:06 -0600

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.