mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-11-02 11:18:18 +00:00
Don't take an exception in the loader or installer whilst trying to be clever.
This commit is contained in:
@@ -150,4 +150,7 @@ def wget(url, directory=None, temp_directory=None, extension=None):
|
||||
return (e, None, None)
|
||||
|
||||
def dpkg_architecture():
|
||||
return subprocess.check_output("dpkg --print-architecture", shell=True).strip()
|
||||
try:
|
||||
return subprocess.check_output(['/usr/bin/dpkg', '--print-architecture']).strip()
|
||||
except (subprocess.CalledProcessError, OSError):
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user