Skip to content

Commit 1db5096

Browse files
authored
fix: debian 13 libfuse logic (#433)
Debian 13 actually uses libfuse3-4 not libfuse 3-3, but all the ubuntu derivatives still use libfuse3-3. Perhaps debian updated from libfuse3-3 to libfuse3-4 at some point and ubuntu hasn't/won't take this change (or yet at least). Also the old logic doesn't install the other default package list, which it now does
1 parent 40fc5d7 commit 1db5096

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

ou_dedetai/system.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -417,11 +417,12 @@ def get_package_manager() -> PackageManager | None:
417417
query_prefix = '.i '
418418
# Set default package list.
419419
packages = (
420-
"libfuse2 " # appimages
421420
"binutils wget winbind " # wine
422421
"p7zip-full cabextract " # winetricks
423422
"xdg-utils " # For xdg-mime needed for custom url scheme registration
424423
)
424+
425+
# Now set the appimage packages, this has changed over time
425426
# NOTE: Package names changed together for Ubuntu 24+, Debian 13+, and
426427
# derivatives. This does not include an exhaustive list of distros that
427428
# use 'apt', so others will have to be added as users report issues.
@@ -432,13 +433,21 @@ def get_package_manager() -> PackageManager | None:
432433
# - https://github.com/which-distro/os-release/tree/main
433434
if (
434435
(os_name == 'debian' and major_ver >= '13')
435-
or (os_name == 'ubuntu' and major_ver >= '24')
436+
):
437+
packages += (
438+
"libfuse3-4 " # appimages
439+
)
440+
elif (
441+
(os_name == 'ubuntu' and major_ver >= '24')
436442
or (os_name == 'linuxmint' and major_ver >= '22')
437443
or (os_name == 'elementary' and major_ver >= '8')
438444
):
439-
packages = (
445+
packages += (
440446
"libfuse3-3 " # appimages
441-
"binutils wget winbind " # wine
447+
)
448+
else:
449+
packages += (
450+
"libfuse2 " # appimages
442451
)
443452
incompatible_packages = "" # appimagelauncher handled separately
444453
elif shutil.which('dnf') is not None: # rhel, fedora

0 commit comments

Comments
 (0)