New POW calculation module #1284
|
@ -9,5 +9,6 @@ addons:
|
||||||
install:
|
install:
|
||||||
- python setup.py install
|
- python setup.py install
|
||||||
script:
|
script:
|
||||||
|
- python checkdeps.py
|
||||||
- pybitmessage -t
|
- pybitmessage -t
|
||||||
- python setup.py test
|
- python setup.py test
|
||||||
|
|
|
@ -19,7 +19,7 @@ pseudo-mailing list:
|
||||||
BM-2D9QKN4teYRvoq2fyzpiftPh9WP9qggtzh
|
BM-2D9QKN4teYRvoq2fyzpiftPh9WP9qggtzh
|
||||||
|
|
||||||
Feel welcome to join chan "bitmessage", BM-2cWy7cvHoq3f1rYMerRJp8PT653jjSuEdY
|
Feel welcome to join chan "bitmessage", BM-2cWy7cvHoq3f1rYMerRJp8PT653jjSuEdY
|
||||||
which is on preview here: http://beamstat.com/chan/bitmessage
|
which is on preview here: https://beamstat.com/chan/bitmessage
|
||||||
|
|
||||||
References
|
References
|
||||||
----------
|
----------
|
||||||
|
|
|
@ -11,6 +11,7 @@ Limitations:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
from distutils.errors import CompileError
|
from distutils.errors import CompileError
|
||||||
try:
|
try:
|
||||||
from setuptools.dist import Distribution
|
from setuptools.dist import Distribution
|
||||||
|
@ -161,5 +162,7 @@ if (not compiler or prereqs) and OPSYS in PACKAGE_MANAGER:
|
||||||
if not compiler:
|
if not compiler:
|
||||||
compilerToPackages()
|
compilerToPackages()
|
||||||
prereqToPackages()
|
prereqToPackages()
|
||||||
|
if mandatory:
|
||||||
|
sys.exit(1)
|
||||||
else:
|
else:
|
||||||
print("All the dependencies satisfied, you can install PyBitmessage")
|
print("All the dependencies satisfied, you can install PyBitmessage")
|
||||||
|
|
|
@ -2811,6 +2811,19 @@ class MyForm(settingsmixin.SMainWindow):
|
||||||
def network_switch(self):
|
def network_switch(self):
|
||||||
dontconnect_option = not BMConfigParser().safeGetBoolean(
|
dontconnect_option = not BMConfigParser().safeGetBoolean(
|
||||||
'bitmessagesettings', 'dontconnect')
|
'bitmessagesettings', 'dontconnect')
|
||||||
|
reply = QtGui.QMessageBox.question(
|
||||||
|
self, _translate("MainWindow", "Disconnecting")
|
||||||
|
if dontconnect_option else _translate("MainWindow", "Connecting"),
|
||||||
|
_translate(
|
||||||
|
"MainWindow",
|
||||||
|
"Bitmessage will now drop all connectins. Are you sure?"
|
||||||
|
) if dontconnect_option else _translate(
|
||||||
|
"MainWindow",
|
||||||
|
"Bitmessage will now start connecting to network. Are you sure?"
|
||||||
|
), QtGui.QMessageBox.Yes | QtGui.QMessageBox.Cancel,
|
||||||
|
QtGui.QMessageBox.Cancel)
|
||||||
|
if reply != QtGui.QMessageBox.Yes:
|
||||||
|
return
|
||||||
BMConfigParser().set(
|
BMConfigParser().set(
|
||||||
'bitmessagesettings', 'dontconnect', str(dontconnect_option))
|
'bitmessagesettings', 'dontconnect', str(dontconnect_option))
|
||||||
BMConfigParser().save()
|
BMConfigParser().save()
|
||||||
|
|
|
@ -137,7 +137,7 @@ def detectOSRelease():
|
||||||
for line in osRelease:
|
for line in osRelease:
|
||||||
if line.startswith("NAME="):
|
if line.startswith("NAME="):
|
||||||
detectOS.result = OS_RELEASE.get(
|
detectOS.result = OS_RELEASE.get(
|
||||||
line.split("=")[-1].strip().lower())
|
line.replace('"', '').split("=")[-1].strip().lower())
|
||||||
elif line.startswith("VERSION_ID="):
|
elif line.startswith("VERSION_ID="):
|
||||||
try:
|
try:
|
||||||
version = float(line.split("=")[1].replace("\"", ""))
|
version = float(line.split("=")[1].replace("\"", ""))
|
||||||
|
|
Reference in New Issue
Block a user