Skip to content

Commit

Permalink
Merge pull request #64 from pop-os/immutable
Browse files Browse the repository at this point in the history
Fix build in Jammy and some immutable environments
  • Loading branch information
13r0ck authored Jul 8, 2022
2 parents de5b292 + c567d1b commit bdefe03
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Source: kernelstub
Maintainer: Ian Santopietro <[email protected]>
Section: python
Priority: optional
Build-Depends: python3-all, pyflakes3, debhelper (>= 7.4.3), dh-python
Build-Depends: python3-all, pyflakes3, debhelper (>= 7.4.3), dh-python, python3-setuptools
Standards-Version: 3.9.1

Package: kernelstub
Expand Down
3 changes: 2 additions & 1 deletion kernelstub/kernel_option.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ def latest_option(path):
opts = options(path)
latest_option, latest_version = get_newest_option(opts)

opts.pop(latest_version)
if latest_version is not None:
opts.pop(latest_version)
previous_option = None
if len(opts) > 0:
previous_option, latest_version = get_newest_option(opts)
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"""


from distutils.core import setup
from distutils.cmd import Command
from setuptools import setup
from setuptools import Command
import os, subprocess, sys

TREE = os.path.dirname(os.path.abspath(__file__))
Expand Down

0 comments on commit bdefe03

Please sign in to comment.