/mandos/release

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/release

« back to all changes in this revision

Viewing changes to initramfs-unpack

  • Committer: Teddy Hogeborn
  • Date: 2024-11-22 20:30:34 UTC
  • mto: This revision was merged to the branch mainline in revision 412.
  • Revision ID: teddy@recompile.se-20241122203034-92q7483wxv29tqev
mandos-monitor: avoid deprecation warnings from urwid

The urwid.FlowWidget class is deprecated.  Replace it with inheriting
from urwid.Widget, and setting the appropriate class attribute.

* mandos-monitor: Replace any mentions of urwid.FlowWidget with
  urwid.Widget.
  (MandosClientWidget): Inherit from "urwid.Widget" instead of
  "urwid.FlowWidget".  Also, move MandosClientPropertyCache to first
  in inheritance list so that its __init__ method can absorb the
  "proxy_object" and "properties" keyword arguments.
  (MandosClientWidget._sizing): New class attribute; set to
  "frozenset(["flow"])".

(Thanks to an anonymous contributor for reporting this.)

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
        elif { $catimg 2>/dev/null | lzop --test >/dev/null 2>&1;
66
66
               [ ${PIPESTATUS[-1]} -eq 0 ]; }; then
67
67
            decomp="lzop --stdout --decompress"
 
68
        elif { $catimg 2>/dev/null | zstd --test >/dev/null 2>&1;
 
69
               [ ${PIPESTATUS[-1]} -eq 0 ]; }; then
 
70
            decomp="zstdcat --stdout --decompress"
68
71
        else
69
72
            skip=$((${skip}+1))
70
73
            echo "Could not determine compression of ${imgfile}; trying to skip ${skip} bytes" >&2