From: Michael Tremer Date: Mon, 21 Jun 2021 10:45:22 +0000 (+0000) Subject: daemon: Drop checking buildroot X-Git-Tag: 0.9.28~1215 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f896d9a537b7a3e7ee0aa84470d9d8b10dd0c3e;p=pakfire.git daemon: Drop checking buildroot Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/daemon.py b/src/pakfire/daemon.py index 87aab8fec..871f2bafe 100644 --- a/src/pakfire/daemon.py +++ b/src/pakfire/daemon.py @@ -388,11 +388,6 @@ class PakfireWorker(multiprocessing.Process): self.register_signal_handlers() while self.__running: - # Check if the build root is file. - if not self.check_buildroot(): - time.sleep(60) - continue - # Try to get a new build job. job = self.get_new_build_job() if not job: @@ -435,28 +430,6 @@ class PakfireWorker(multiprocessing.Process): """ self.shutdown() - def check_buildroot(self): - """ - Checks if the buildroot is fine. - """ - mp = system.get_mountpoint(BUILD_ROOT) - - # Check if the mountpoint is read-only. - if mp.is_readonly(): - log.warning("Build directory is read-only: %s" % BUILD_ROOT) - - # Trying to remount. - try: - mp.remount("rw") - except: - log.warning("Remounting (rw) %s has failed" % BUILD_ROOT) - return False - else: - log.warning("Successfully remounted as rw: %s" % BUILD_ROOT) - - # Everything looks fine. - return True - def get_new_build_job(self, timeout=600): log.debug("Requesting new job...") diff --git a/src/pakfire/system.py b/src/pakfire/system.py index 337a9563d..a5362abbf 100644 --- a/src/pakfire/system.py +++ b/src/pakfire/system.py @@ -167,9 +167,6 @@ class System(object): return meminfo.get("SwapFree", None) - def get_mountpoint(self, path): - return Mountpoint(path) - # Create an instance of this class to only keep it once in memory. system = System()