Package Details: remove-orphaned-kernels 1.1.2-1

Git Clone URL: https://aur.archlinux.org/remove-orphaned-kernels.git (read-only, click to copy)
Package Base: remove-orphaned-kernels
Description: pacman -Rs orphaned kernel and driver packages, excluding currently-running.
Upstream URL: https://aur.archlinux.org/packages/remove-orphaned-kernels/
Licenses: GPL
Submitter: chrisjbillington
Maintainer: chrisjbillington
Last Packager: chrisjbillington
Votes: 1
Popularity: 0.036400
First Submitted: 2020-02-28 17:34 (UTC)
Last Updated: 2022-03-22 22:10 (UTC)

Latest Comments

Flammkuchen commented on 2022-03-23 00:53 (UTC)

Gern geschehen. Works like expected now. Thanks for the fast fix.

chrisjbillington commented on 2022-03-22 22:12 (UTC)

Dankeschön Flammkuchen, apologies for not being aware this code was LANG-dependent. I've made the change so that subprocesses whose output is to be parsed are called like this:

    p = run(cmd, capture_output=True, env=os.environ | {'LANG': 'C'})

Could you verify that it works for you?

Flammkuchen commented on 2022-03-22 21:12 (UTC)

This script only works if the language is set to English. If your system is not set to English, use LANG=C remove-orphaned-packages

I would prefer this to not be necessary. This could be done like in https://stackoverflow.com/questions/51293480/how-to-call-lc-all-c-sort-from-python-subprocess

In this case it doesn't have to be LC_ALL, LANG is enough.