summaryrefslogtreecommitdiff
path: root/src/backend/install.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-10-30 20:02:58 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-10-30 20:02:58 +0000
commit206c993e45c39e60eceae1f66c69d39903ab9266 (patch)
tree96e15cacf4f5ad804fb97f0fb37584c6d064acfd /src/backend/install.py
parent80d633d0738461d7715e5051ab7f3248068fa87e (diff)
space functions a bit
Diffstat (limited to 'src/backend/install.py')
-rw-r--r--src/backend/install.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/backend/install.py b/src/backend/install.py
index 1b54089..6883940 100644
--- a/src/backend/install.py
+++ b/src/backend/install.py
@@ -15,6 +15,7 @@ import sisyphus.solvedeps
import sisyphus.syncdb
import sisyphus.update
+
def start(pkgname):
if sisyphus.checkenv.root():
sisyphus.update.start()
@@ -31,7 +32,7 @@ def start(pkgname):
for index, binary in enumerate([package + '.tbz2' for package in areBinaries], start=1):
print(">>> Downloading binary ({}".format(index) + " " + "of" + " " + str(len(areBinaries)) + ")" + " " + binary)
wget.download(binhostURL + binary)
- print("\n")
+ print("")
if os.path.isdir(os.path.join(sisyphus.getfs.portageCacheDir, binary.rstrip().split("/")[0])):
shutil.move(binary.rstrip().split("/")[1], os.path.join(os.path.join(sisyphus.getfs.portageCacheDir, binary.rstrip().split("/")[0]), os.path.basename(binary.rstrip().split("/")[1])))
@@ -57,6 +58,7 @@ def start(pkgname):
else:
sys.exit("\nYou need root permissions to do this, exiting!\n")
+
def estart(pkgname):
if sisyphus.checkenv.root():
sisyphus.update.start()
@@ -73,7 +75,7 @@ def estart(pkgname):
for index, binary in enumerate([package + '.tbz2' for package in areBinaries], start=1):
print(">>> Downloading binary ({}".format(index) + " " + "of" + " " + str(len(areBinaries)) + ")" + " " + binary)
wget.download(binhostURL + binary)
- print("\n")
+ print("")
if os.path.isdir(os.path.join(sisyphus.getfs.portageCacheDir, binary.rstrip().split("/")[0])):
shutil.move(binary.rstrip().split("/")[1], os.path.join(os.path.join(sisyphus.getfs.portageCacheDir, binary.rstrip().split("/")[0]), os.path.basename(binary.rstrip().split("/")[1])))
@@ -100,7 +102,7 @@ def estart(pkgname):
for index, binary in enumerate([package + '.tbz2' for package in areBinaries], start=1):
print(">>> Downloading binary ({}".format(index) + " " + "of" + " " + str(len(areBinaries)) + ")" + " " + binary)
wget.download(binhostURL + binary)
- print("\n")
+ print("")
if os.path.isdir(os.path.join(sisyphus.getfs.portageCacheDir, binary.rstrip().split("/")[0])):
shutil.move(binary.rstrip().split("/")[1], os.path.join(os.path.join(sisyphus.getfs.portageCacheDir, binary.rstrip().split("/")[0]), os.path.basename(binary.rstrip().split("/")[1])))
@@ -131,6 +133,7 @@ def estart(pkgname):
else:
sys.exit("\nYou need root permissions to do this, exiting!\n")
+
def startx(pkgname):
binhostURL = sisyphus.getenv.binhostURL()
areBinaries,areSources,needsConfig = sisyphus.solvedeps.package.__wrapped__(pkgname) #undecorate
@@ -140,7 +143,7 @@ def startx(pkgname):
for index, binary in enumerate([package + '.tbz2' for package in areBinaries], start=1):
print(">>> Downloading binary ({}".format(index) + " " + "of" + " " + str(len(areBinaries)) + ")" + " " + binary)
wget.download(binhostURL + binary)
- print("\n")
+ print("")
if os.path.isdir(os.path.join(sisyphus.getfs.portageCacheDir, binary.rstrip().split("/")[0])):
shutil.move(binary.rstrip().split("/")[1], os.path.join(os.path.join(sisyphus.getfs.portageCacheDir, binary.rstrip().split("/")[0]), os.path.basename(binary.rstrip().split("/")[1])))