]> git.ipfire.org Git - pakfire.git/commitdiff
Remove unused build function from Pakfire()
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 11 Jan 2021 15:46:04 +0000 (15:46 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 11 Jan 2021 15:46:04 +0000 (15:46 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/base.py

index 77490baaec27d6268489e5c904c0cdf677529aa9..75d3a2c748e4ff30fcd4e987081beda1b8817181 100644 (file)
@@ -149,19 +149,6 @@ class Pakfire(_pakfire.Pakfire):
                for repo in self.repos:
                        repo.clean()
 
-       def build(self, makefile, resultdir, stages=None, **kwargs):
-               b = builder.Builder(self, makefile, resultdir, **kwargs)
-
-               try:
-                       b.build(stages=stages)
-
-               except Error:
-                       raise BuildError(_("Build command has failed."))
-
-               else:
-                       # If the build was successful, cleanup all temporary files.
-                       b.cleanup()
-
        def dist(self, pkg, resultdir):
                pkg = packages.Makefile(self, pkg)