diff --git a/scripts/linuxparty.py b/scripts/linuxparty.py index d50b10c58b6305d0cbca47c4e19f78c942a9700e..108bb4b167596a834ee5252c97fc010a07f72640 100755 --- a/scripts/linuxparty.py +++ b/scripts/linuxparty.py @@ -14,7 +14,7 @@ def subprocess_wrap(what): while True: status = proc.poll() if status is not None: - break + break output = proc.stdout.readline() if output == '' and status: break @@ -143,9 +143,7 @@ def showErrorBox(errorstring): sys.exit(errorBox.exec_()) def checkIfRoot(): - # disabled for testing - #if os.getuid() != 0: - if 0 != 0: + if os.getuid() != 0: errorBox = QtWidgets.QMessageBox() errorBox.setText("You must run this script as root.") errorBox.setWindowTitle("Please run this script as root.") @@ -179,7 +177,7 @@ def makeDoku(stringlist): #command=["echo", "./makeDoku.sh", basedir, " ".join(stringlist)] command=["./makeDoku.sh", basedir+"/", " ".join(pkglist)] subprocess_wrap(command) - + def getPackagelist(): installList = [] model = window.ui.tableView.model() @@ -248,7 +246,7 @@ if __name__ == '__main__': basepath=os.path.realpath(__file__) basedir=os.path.dirname(basepath) checkIfRoot() - #mountStick() + mountStick() window = Main() window.setWindowTitle("Linux Install Party Software Installer") with open(basedir+'/../offline_repo.json', 'r') as inputfile: