summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-08-23 01:43:22 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-08-23 01:43:22 +0100
commitbbd3803ef7fb7132868680652d024a4b89353e43 (patch)
tree4683071dd2e4d550f5badc838e4694085e24a746
parent84df9e9070477c3d3a7f2067edeb3f14f82560ed (diff)
prepare for API documentation
-rw-r--r--src/backend/__init__.py8
-rw-r--r--src/backend/binpkgsrc_cln.py (renamed from src/backend/binpkgsrcautorm.py)2
-rw-r--r--src/backend/binpkgsrc_inst.py (renamed from src/backend/binpkgsrcinst.py)0
-rw-r--r--src/backend/binpkgsrc_unst.py (renamed from src/backend/binpkgsrcunst.py)0
-rw-r--r--src/backend/binpkgsrc_upg.py (renamed from src/backend/binpkgsrcupgd.py)0
-rwxr-xr-xsrc/frontend/cli/sisyphus-cli.py14
-rw-r--r--src/frontend/gui/sisyphus-gui.py8
7 files changed, 16 insertions, 16 deletions
diff --git a/src/backend/__init__.py b/src/backend/__init__.py
index aedf50b..d1dca43 100644
--- a/src/backend/__init__.py
+++ b/src/backend/__init__.py
@@ -1,7 +1,7 @@
-from .binpkgsrcautorm import *
-from .binpkgsrcinst import *
-from .binpkgsrcunst import *
-from .binpkgsrcupgd import *
+from .binpkgsrc_cln import *
+from .binpkgsrc_inst import *
+from .binpkgsrc_unst import *
+from .binpkgsrc_upg import *
from .checkenv import *
from .dlbinpkg import *
from .getclr import *
diff --git a/src/backend/binpkgsrcautorm.py b/src/backend/binpkgsrc_cln.py
index 1036f66..937c8ec 100644
--- a/src/backend/binpkgsrcautorm.py
+++ b/src/backend/binpkgsrc_cln.py
@@ -45,7 +45,7 @@ def start(gfx_ui=False):
args = ['--quiet', '--depclean']
if sisyphus.checkenv.root() and not gfx_ui:
- print(f"\n{sisyphus.getclr.bright_white}Packages identified as orphaned and no longer needed are slated for{sisyphus.getclr.reset} {sisyphus.getclr.green}'safe'{sisyphus.getclr.reset} {sisyphus.getclr.bright_white}removal.{sisyphus.getclr.reset}\n")
+ print(f"\n{sisyphus.getclr.bright_white}Orphaned and no longer needed packages are slated for{sisyphus.getclr.reset} {sisyphus.getclr.green}'safe'{sisyphus.getclr.reset} {sisyphus.getclr.bright_white}removal.{sisyphus.getclr.reset}\n")
while True:
user_input = input(
f"{sisyphus.getclr.bright_white}Would you like to proceed?{sisyphus.getclr.reset} [{sisyphus.getclr.bright_green}Yes{sisyphus.getclr.reset}/{sisyphus.getclr.bright_red}No{sisyphus.getclr.reset}] ")
diff --git a/src/backend/binpkgsrcinst.py b/src/backend/binpkgsrc_inst.py
index 091502b..091502b 100644
--- a/src/backend/binpkgsrcinst.py
+++ b/src/backend/binpkgsrc_inst.py
diff --git a/src/backend/binpkgsrcunst.py b/src/backend/binpkgsrc_unst.py
index b039f96..b039f96 100644
--- a/src/backend/binpkgsrcunst.py
+++ b/src/backend/binpkgsrc_unst.py
diff --git a/src/backend/binpkgsrcupgd.py b/src/backend/binpkgsrc_upg.py
index f8b01d2..f8b01d2 100644
--- a/src/backend/binpkgsrcupgd.py
+++ b/src/backend/binpkgsrc_upg.py
diff --git a/src/frontend/cli/sisyphus-cli.py b/src/frontend/cli/sisyphus-cli.py
index 8e6ec04..34ce260 100755
--- a/src/frontend/cli/sisyphus-cli.py
+++ b/src/frontend/cli/sisyphus-cli.py
@@ -135,10 +135,10 @@ def install(pkgname: List[str],
sisyphus install -e --nodeps vivaldi\n
"""
if ebuild:
- sisyphus.binpkgsrcinst.start(
+ sisyphus.binpkgsrc_inst.start(
pkgname, ebuild=True, gfx_ui=False, oneshot=oneshot, nodeps=nodeps)
else:
- sisyphus.binpkgsrcinst.start(
+ sisyphus.binpkgsrc_inst.start(
pkgname, ebuild=False, gfx_ui=False, oneshot=oneshot, nodeps=nodeps)
@@ -165,10 +165,10 @@ def uninstall(pkgname: List[str], force: bool = typer.Option(False, "--force", "
sisyphus uninstall openrc -f # this will succeed, but the system will no longer boot\n
"""
if force:
- sisyphus.binpkgsrcunst.start(
+ sisyphus.binpkgsrc_unst.start(
pkgname, depclean=False, gfx_ui=False, unmerge=True)
else:
- sisyphus.binpkgsrcunst.start(
+ sisyphus.binpkgsrc_unst.start(
pkgname, depclean=True, gfx_ui=False, unmerge=False)
@@ -186,7 +186,7 @@ def autoremove():
* Examples:\n
sisyphus autoremove\n
"""
- sisyphus.binpkgsrcautorm.start(gfx_ui=False)
+ sisyphus.binpkgsrc_cln.start(gfx_ui=False)
@app.command("autoclean")
@@ -233,9 +233,9 @@ def upgrade(
sisyphus upgrade -e\n
"""
if ebuild:
- sisyphus.binpkgsrcupgd.start(ebuild=True, gfx_ui=False)
+ sisyphus.binpkgsrc_upg.start(ebuild=True, gfx_ui=False)
else:
- sisyphus.binpkgsrcupgd.start(ebuild=False, gfx_ui=False)
+ sisyphus.binpkgsrc_upg.start(ebuild=False, gfx_ui=False)
@app.command("spmsync")
diff --git a/src/frontend/gui/sisyphus-gui.py b/src/frontend/gui/sisyphus-gui.py
index b86561e..8fc62b8 100644
--- a/src/frontend/gui/sisyphus-gui.py
+++ b/src/frontend/gui/sisyphus-gui.py
@@ -461,7 +461,7 @@ class MainWorker(QtCore.QObject):
def startInstall(self):
self.started.emit()
pkgname = Sisyphus.pkgname
- sisyphus.binpkgsrcinst.start(
+ sisyphus.binpkgsrc_inst.start(
pkgname, ebuild=False, gfx_ui=True, oneshot=False, nodeps=False)
self.finished.emit()
@@ -469,20 +469,20 @@ class MainWorker(QtCore.QObject):
def startUninstall(self):
self.started.emit()
pkgname = Sisyphus.pkgname
- sisyphus.binpkgsrcunst.start(
+ sisyphus.binpkgsrc_unst.start(
pkgname, depclean=True, gfx_ui=True, unmerge=False)
self.finished.emit()
@QtCore.pyqtSlot()
def startUpgrade(self):
self.started.emit()
- sisyphus.binpkgsrcupgd.start(ebuild=False, gfx_ui=True)
+ sisyphus.binpkgsrc_upg.start(ebuild=False, gfx_ui=True)
self.finished.emit()
@QtCore.pyqtSlot()
def startAutoremove(self):
self.started.emit()
- sisyphus.binpkgsrcautorm.start(gfx_ui=True)
+ sisyphus.binpkgsrc_cln.start(gfx_ui=True)
self.finished.emit()