[elbe-devel] [PATCH 19/22] PLACEHOLDER: remove build_update_package

Thomas Weißschuh thomas.weissschuh at linutronix.de
Wed Aug 14 15:29:33 CEST 2024


This patch is a prerequisite from another series.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/projectmanager.py | 23 -----------------------
 1 file changed, 23 deletions(-)

diff --git a/elbepack/projectmanager.py b/elbepack/projectmanager.py
index a75ecbc152d0..25de32911473 100644
--- a/elbepack/projectmanager.py
+++ b/elbepack/projectmanager.py
@@ -14,7 +14,6 @@ from elbepack.asyncworker import (
     BuildSDKJob,
     BuildSysrootJob,
     CreatePbuilderJob,
-    GenUpdateJob,
     PdebuildJob,
     UpdatePbuilderJob,
 )
@@ -253,17 +252,6 @@ class ProjectManager:
         with self.lock:
             self.worker.enqueue(BuildCDROMsJob(ep, build_bin, build_src))
 
-    def build_update_package(self, userid, base_version):
-        with self.lock:
-            c = self._get_current_project_apt_cache(userid)
-            if c.get_changes():
-                raise InvalidState(
-                    'project %s has uncommited package changes, '
-                    'please commit them first')
-
-            ep = self._get_current_project(userid)
-            self.worker.enqueue(GenUpdateJob(ep, base_version))
-
     def rm_log(self, userid, builddir):
         ep = self.open_project(userid, builddir)
         with open(os.path.join(ep.builddir, 'log.txt'), 'wb', 0):
@@ -334,14 +322,3 @@ class ProjectManager:
             raise PermissionDenied(builddir)
 
         # User is owner, so allow it
-
-    def _get_current_project_apt_cache(self, userid):
-        # Must be called with self.lock held
-        ep = self._get_current_project(userid, allow_busy=False)
-
-        if not ep.has_full_buildenv():
-            raise InvalidState(
-                f'project in directory {ep.builddir} does not have a '
-                'functional build environment')
-
-        return ep.get_rpcaptcache()

-- 
2.46.0



More information about the elbe-devel mailing list