From: Michael Tremer Date: Sat, 3 Dec 2016 17:22:41 +0000 (+0100) Subject: base: Drop unused function check_host_arch() X-Git-Tag: 0.9.28~1285^2~1409 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c78909f073d18c9ae0cae97347ce994dd42f39bd;p=pakfire.git base: Drop unused function check_host_arch() Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/base.py b/src/pakfire/base.py index 4be0ba8ad..3ac045742 100644 --- a/src/pakfire/base.py +++ b/src/pakfire/base.py @@ -102,20 +102,6 @@ class Pakfire(object): if not os.getuid() == 0 or not os.getgid() == 0: raise Exception("You must run pakfire as the root user.") - def check_host_arch(self, arch): - """ - Check if we can build for arch. - """ - # If no arch was given on the command line we build for our - # own arch which should always work. - if not arch: - return True - - if not system.host_supports_arch(arch): - raise BuildError("Cannot build for the target architecture: %s" % arch) - - raise BuildError(arch) - def check_is_ipfire(self): ret = os.path.exists("/etc/ipfire-release")