mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-27 21:38:40 +02:00
Fixed bad indentation for getLinuxPlatform() #4695
Caused by 16d9bd8f0d
This commit is contained in:
parent
b71c298163
commit
cbb4cec841
1 changed files with 10 additions and 10 deletions
|
@ -1468,17 +1468,17 @@ class InternalCommands:
|
||||||
if os.uname()[4][:3] == 'arm':
|
if os.uname()[4][:3] == 'arm':
|
||||||
return 'Linux-armv6l'
|
return 'Linux-armv6l'
|
||||||
|
|
||||||
# os_bits should be loaded with '32bit' or '64bit'
|
# os_bits should be loaded with '32bit' or '64bit'
|
||||||
import platform
|
import platform
|
||||||
(os_bits, other) = platform.architecture()
|
(os_bits, other) = platform.architecture()
|
||||||
|
|
||||||
# get platform based on current platform
|
# get platform based on current platform
|
||||||
if os_bits == '32bit':
|
if os_bits == '32bit':
|
||||||
return 'Linux-i686'
|
return 'Linux-i686'
|
||||||
elif os_bits == '64bit':
|
elif os_bits == '64bit':
|
||||||
return 'Linux-x86_64'
|
return 'Linux-x86_64'
|
||||||
else:
|
else:
|
||||||
raise Exception("unknown os bits: " + os_bits)
|
raise Exception("unknown os bits: " + os_bits)
|
||||||
|
|
||||||
def dist_usage(self):
|
def dist_usage(self):
|
||||||
print ('Usage: %s package [package-type]\n'
|
print ('Usage: %s package [package-type]\n'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue