mirror of
https://github.com/Neocky/pluGET.git
synced 2024-04-29 16:12:30 +00:00
Made paperVersionBehind display "N/A" instead of "False" for more clarity.
This commit is contained in:
parent
b31cca5e31
commit
a08aab7ae4
@ -71,6 +71,7 @@ def findBuildVersion(wantedPaperBuild):
|
|||||||
return paperVersionGroup
|
return paperVersionGroup
|
||||||
return False # Not found
|
return False # Not found
|
||||||
|
|
||||||
|
|
||||||
def findLatestBuild(paperVersionGroup):
|
def findLatestBuild(paperVersionGroup):
|
||||||
if paperVersionGroup is None:
|
if paperVersionGroup is None:
|
||||||
return False
|
return False
|
||||||
@ -148,10 +149,12 @@ def paperCheckForUpdate(installedServerjarFullName):
|
|||||||
# Report an error if getInstalledPaperVersion encountered an issue.
|
# Report an error if getInstalledPaperVersion encountered an issue.
|
||||||
if not paperVersionBehind:
|
if not paperVersionBehind:
|
||||||
print(oColors.brightRed + f"ERR: An error was encountered while detecting how many versions behind you are. "
|
print(oColors.brightRed + f"ERR: An error was encountered while detecting how many versions behind you are. "
|
||||||
f"Will display as False." + oColors.standardWhite)
|
f"Will display as 'N/A'." + oColors.standardWhite)
|
||||||
# Does not return false as versions behind doesn't break things. It is just helpful information.
|
paperVersionBehind = "N/A" # Sets paperVersionBehind to N/A while still letting the versionBehind check return
|
||||||
# paperVersionBehind will just display as "False"
|
# # False for error-handing reasons.
|
||||||
|
|
||||||
|
# Does not return false as versions behind doesn't break things. It is just helpful information.
|
||||||
|
# paperVersionBehind will just display as "N/A"
|
||||||
|
|
||||||
print("┌─────┬────────────────────────────────┬──────────────┬──────────────┬───────────────────┐")
|
print("┌─────┬────────────────────────────────┬──────────────┬──────────────┬───────────────────┐")
|
||||||
print("│ No. │ Name │ Installed V. │ Latest V. │ Versions behind │")
|
print("│ No. │ Name │ Installed V. │ Latest V. │ Versions behind │")
|
||||||
|
Loading…
Reference in New Issue
Block a user