]> git.ipfire.org Git - pbs.git/commitdiff
release monitoring: Don't pass target to dist()
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 3 May 2025 09:26:31 +0000 (09:26 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 3 May 2025 09:26:31 +0000 (09:26 +0000)
The dist command now returns an archive object instead of copying it to
a specific place.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/buildservice/releasemonitoring.py

index 8e0f40861873da81214b11a77a423798f1fa1af2..7437573a077d4ac6578aa045477987494df4d61f 100644 (file)
@@ -315,14 +315,15 @@ class MonitoringRelease(database.Base, database.BackendMixin):
                                        log.info("Generated diff:\n%s" % self.diff)
 
                                        # Generate a new source package
-                                       return await asyncio.to_thread(p.dist, makefile, target)
+                                       return await asyncio.to_thread(p.dist, makefile)
 
                # If we could not create a new source package, this is okay and we will continue
                # without. However, we will log the exception...
                except Exception as e:
                        log.error("Could not create source package for %s" % self, exc_info=True)
 
-                       return None
+                       # Re-raise the exception
+                       raise e
 
                # Store the Pakfire log
                finally: