Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-05-20 08:07:02 +0200
committerGitHub <noreply@github.com>2021-05-20 08:07:02 +0200
commit71ab52178c143d3f9b3d2d7090a51404913d9939 (patch)
tree1cc07aa1f2874c5a54ed2a8df151462569f9da75 /archinstall/lib
parent182babf33a8fd5ff08cdf5774b0a87c8e9386384 (diff)
parent434ed8f67fbe4a03c8d7fe8f8a9c41843895e122 (diff)
Merge pull request #481 from dylanmtaylor/minor-formatting-cleanup
Some very minor cleanup
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/general.py2
-rw-r--r--archinstall/lib/networking.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/archinstall/lib/general.py b/archinstall/lib/general.py
index cec3891a..81793cb8 100644
--- a/archinstall/lib/general.py
+++ b/archinstall/lib/general.py
@@ -365,4 +365,4 @@ def pid_exists(pid: int):
try:
return any(subprocess.check_output(['/usr/bin/ps', '--no-headers', '-o', 'pid', '-p', str(pid)]).strip())
except subprocess.CalledProcessError:
- return False \ No newline at end of file
+ return False
diff --git a/archinstall/lib/networking.py b/archinstall/lib/networking.py
index eb11a47e..0643c9cf 100644
--- a/archinstall/lib/networking.py
+++ b/archinstall/lib/networking.py
@@ -10,6 +10,7 @@ from .general import SysCommand
from .output import log
from .storage import storage
+
def get_hw_addr(ifname):
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
info = fcntl.ioctl(s.fileno(), 0x8927, struct.pack('256s', bytes(ifname, 'utf-8')[:15]))
@@ -35,6 +36,7 @@ def check_mirror_reachable():
return False
+
def enrich_iface_types(interfaces: dict):
result = {}
for iface in interfaces: