summaryrefslogtreecommitdiffhomepage
path: root/updater
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-03-23 01:11:36 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-03-23 01:11:36 +0100
commit6a8d1d5fb1a685d9eba93d100af673053ab68860 (patch)
tree9208011acc6f7453e52e2e9eb59970b0f9a10641 /updater
parent5c15e4939723513bab37bfca01ad879b6e353808 (diff)
[FEAT] Improved installation flow and X11 library.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'updater')
-rw-r--r--updater/__init__.py8
-rwxr-xr-xupdater/updater.py21
2 files changed, 18 insertions, 11 deletions
diff --git a/updater/__init__.py b/updater/__init__.py
index 4ca30c3..721a864 100644
--- a/updater/__init__.py
+++ b/updater/__init__.py
@@ -1,10 +1,16 @@
+# Copyright 2026, Amlal El Mahrouss and Ne.org contributors.
+# NeSystem is licensed under Apache-2.0.
+# SPDX-Identifier: Apache-2.0
+
+# -*- coding: utf-8 -*-
+
import updater
def start_updater():
try:
print("Updating system...")
updater.start()
- except Error:
+ except TypeError:
print("Updater failed, sorry!")
diff --git a/updater/updater.py b/updater/updater.py
index f6a19e4..224325e 100755
--- a/updater/updater.py
+++ b/updater/updater.py
@@ -2,22 +2,23 @@
# NeSystem is licensed under Apache-2.0.
# SPDX-Identifier: Apache-2.0
-from os import system
+# -*- coding: utf-8 -*-
+
+import os
class UpdateFunctor:
def __init__(self):
- system("cd src && cd kernel && git pull && cd ..")
- system("cd src && cd nectar && git pull && cd ..")
- system("cd src && cd build && git pull && cd ..")
- system("cd src && cd boot && git pull && cd ..")
- system("cd papers && git pull")
- system("git add src/kernel src/nectar papers src/build src/boot")
- system("git commit -s -S")
+ os.system("cd src && cd kernel && git pull && cd ..")
+ os.system("cd src && cd nectar && git pull && cd ..")
+ os.system("cd src && cd build && git pull && cd ..")
+ os.system("cd src && cd boot && git pull && cd ..")
+ os.system("cd papers && git pull")
+ os.system("git add src/kernel src/nectar papers src/build src/boot")
+ if (os.environ.get('UPDATER_NO_COMMIT', False) == False):
+ os.system("git commit -s -S")
def start():
functor = UpdateFunctor()
print("INFO: Updater: Functor called")
-
-