feat(packaging): implement packaging (.tar.gz, .deb, .rpm), FHS logging, and container integration test matrix
This commit is contained in:
1 parent
6e18bdf7b7
commit
e1a99d7e6f
20 files changed
+789
-21
No files matched your search
@@ -75,18 +75,23 @@ class AptManager(PackageManager):
|
||||
def release_upgrade(
|
||||
self,
|
||||
target_release: Optional[str] = None,
|
||||
dry_run: bool = False,
|
||||
non_interactive: bool = False,
|
||||
) -> CommandResult:
|
||||
# Check if do-release-upgrade is available (Ubuntu)
|
||||
import shutil
|
||||
if shutil.which("do-release-upgrade"):
|
||||
cmd = ["do-release-upgrade"]
|
||||
if dry_run:
|
||||
cmd.append("-d")
|
||||
if non_interactive:
|
||||
cmd.extend(["-f", "DistUpgradeViewNonInteractive"])
|
||||
return self.runner.run(cmd, env=self._env(non_interactive))
|
||||
|
||||
# Standard Debian dist-upgrade
|
||||
cmd = ["apt-get", "dist-upgrade", "-y"]
|
||||
if dry_run:
|
||||
cmd.append("-s")
|
||||
if non_interactive:
|
||||
cmd.extend([
|
||||
'-o', 'Dpkg::Options::=--force-confdef',
|
||||
|
||||
Reference in new issue
Block a user