From c65015bf17731639c427110ca265175dc4b18097 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Sun, 6 Oct 2019 17:55:37 +0200 Subject: [PATCH] APT: use dist-upgrade, not just upgrade --- apt.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apt.go b/apt.go index 0ad74aa..a1fc46d 100644 --- a/apt.go +++ b/apt.go @@ -40,7 +40,7 @@ func (self *apt) getName() string { func (self *apt) whatIfUpgradeAll(critOpRunner criticalOperationRunner) (tasks map[common.PkgMgrTask]struct{}, err error) { critOpRunner.runCritical(func() { - tasks, err = self.whatIf("upgrade") + tasks, err = self.whatIf("dist-upgrade") }) return @@ -48,14 +48,14 @@ func (self *apt) whatIfUpgradeAll(critOpRunner criticalOperationRunner) (tasks m func (self *apt) whatIfUpgrade(critOpRunner criticalOperationRunner, packageName string) (tasks map[common.PkgMgrTask]struct{}, err error) { critOpRunner.runCritical(func() { - tasks, err = self.whatIf("upgrade", packageName) + tasks, err = self.whatIf("dist-upgrade", packageName) }) return } func (self *apt) upgrade(critOpRunner criticalOperationRunner, packageName string) (err error) { - cmd := exec.Command(self.exe, "-yqq", "upgrade", packageName) + cmd := exec.Command(self.exe, "-yqq", "dist-upgrade", packageName) cmd.Env = []string{"LC_ALL=C", "DEBIAN_FRONTEND=noninteractive", "PATH=" + os.Getenv("PATH")} cmd.Dir = "/"