Skip to content

Commit

Permalink
Merge pull request #539 from softwarecreations/master
Browse files Browse the repository at this point in the history
Fixed frozen apt install during Modoboa upgrade when package already installed with old config file
  • Loading branch information
tonioo authored Apr 9, 2024
2 parents 9eda3b8 + 7dcf69b commit e76d7d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modoboa_installer/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ def preconfigure(self, name, question, qtype, answer):
def install(self, name):
"""Install a package."""
self.update()
utils.exec_cmd("apt-get -o Dpkg::Progress-Fancy=0 install --quiet --assume-yes {}".format(name))
utils.exec_cmd("apt-get -o Dpkg::Progress-Fancy=0 install --quiet --assume-yes -o DPkg::options::=--force-confold {}".format(name))

def install_many(self, names):
"""Install many packages."""
self.update()
return utils.exec_cmd("apt-get -o Dpkg::Progress-Fancy=0 install --quiet --assume-yes {}".format(
return utils.exec_cmd("apt-get -o Dpkg::Progress-Fancy=0 install --quiet --assume-yes -o DPkg::options::=--force-confold {}".format(
" ".join(names)))

def get_installed_version(self, name):
Expand Down

0 comments on commit e76d7d5

Please sign in to comment.