]> git.ipfire.org Git - pakfire.git/commitdiff
base: Drop unused function check_host_arch()
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 3 Dec 2016 17:22:41 +0000 (18:22 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 3 Dec 2016 17:22:41 +0000 (18:22 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/base.py

index 4be0ba8ad94db7c61f25d4644c2c3143500c7b53..3ac045742bf6411987bf167998b4148be6b9488d 100644 (file)
@@ -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")