@@ -38,7 +38,6 @@ impl EphemeralContextGuard {
|
|||||||
return Err(format!("mmdebstrap failed for series {}", series).into());
|
return Err(format!("mmdebstrap failed for series {}", series).into());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Switch to an ephemeral context to build the package in the chroot
|
// Switch to an ephemeral context to build the package in the chroot
|
||||||
context::manager().set_current_ephemeral(Context::new(ContextConfig::Unshare {
|
context::manager().set_current_ephemeral(Context::new(ContextConfig::Unshare {
|
||||||
path: chroot_path.to_string_lossy().to_string(),
|
path: chroot_path.to_string_lossy().to_string(),
|
||||||
@@ -60,7 +59,6 @@ impl Drop for EphemeralContextGuard {
|
|||||||
log::error!("Failed to restore context {}: {}", self.previous_context, e);
|
log::error!("Failed to restore context {}: {}", self.previous_context, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Remove chroot directory
|
// Remove chroot directory
|
||||||
// We use the restored context to execute the cleanup command
|
// We use the restored context to execute the cleanup command
|
||||||
let result = context::current()
|
let result = context::current()
|
||||||
|
|||||||
Reference in New Issue
Block a user